5.7 Reference Guide for using DLL
186
The return value of this function will be zero if the function is successful. Otherwise, the return value will be
an error code.
Parameter
void
set_dut_general_type
Description
This function sets the type of a DUT. If type is set to 0(UNKNOWN_DUT), this function can be used to
measure or generate the normal signal of 2.4~2.5 GHz.
Syntax
set_dut_general_type(unsigned char 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
type // 0:Unknown DUT, 1:Bluetooth DUT(default)
read_dut_baud_rate
Description
This function reads the baud rate of HCI transport layer of a DUT. It is meaningful only for UART, BCSP and
RS-232C.
Syntax
unsigned long read_dut_baud_rate( long int *baud_rate);
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
baud_rate // 9600(default) /19200 /38400 /56000 /57600 /115200 /128000 /256000.
write_dut_baud_rate
Description
This function writes the baud rate of HCI transport layer of a DUT. It is meaningful only for UART, BCSP and
RS-232C.
Syntax
unsigned long write_dut_baud_rate(long int baud_rate);
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
baud_rate // 9600(default) /19200 /38400 /56000 /57600 /115200 /128000 /256000.
5.7.4 Access Fucntions
activate_dut
Description
This function checks whether a RF link with a DUT exists; and if not, the function will create connection and
set test mode id it is necessary.