5.7 Reference Guide for using DLL
162
Description
This function writes the PIN type of a tester. Tester uses the PIN type information during pairing.
Syntax
unsigned long write_tester_pin_type(unsigned char pin_type);
Return Value
The return value of this function will be zero if the function is successful. Otherwise, the return value will be
an error code.
Parameter
pin_type // 0: Variable PIN(default), 1:Fixed PIN
read_skip_pairing
Description
This function writes the flag to skip pairing procedure. Refer to write_skip_pairing for more details.
Syntax
unsigned long read_skip_pairing(unsigned char *skip_pairing);
Return Value
The return value of this function will be zero if the function is successful. Otherwise, the return value will be
an error code.
Parameter
skip_pairing // 0:Not skip, 1:Skip.
write_skip_pairing
Description
This function reads the flag to skip pairing procedure. If the flag to skip pairing is 1, the Link Key, which is
defined by write_link_key function will be used for authentication procedure.
Syntax
unsigned long write_skip_pairing(unsigned char skip_pairing);
Return Value
The return value of this function will be zero if the function is successful. Otherwise, the return value will be
an error code.
Parameter
skip_pairing // 0:Not skip(default), 1:Skip.
read_auth_link_key
Description
This function reads the Link Key which is used for authentication procedure if the flag to skip pairing is 1.
Syntax
unsigned long read_auth_link_key(unsigned char *link_key);
Return Value
The return value of this function will be zero if the function is successful. Otherwise, the return value will be
an error code.
Parameter
link_key // the first byte of 16-bytes array of the link key for the associated BD_ADDR
write_auth_link_key
Description
This function writes the Link Key which is used for authentication procedure if the flag to skip pairing is 1.