5.7 Reference Guide for using DLL
196
bytes_2 // number of checked bits with pattern 1010
num_df2_l // number of deviations from the average frequency for the 10101010
// pattern less then low limit (115 KHz)
ber
Description
This function provides measurement of the Bit Error Rate at the given RX frequency. The frequency is TX
frequency of a tester. The function can be used for the RCV/CA/01(02,06)/C (Sensittivity single/multi slot
packets, Maximum Input Level ) test cases.
Syntax
unsigned long ber(unsigned char bit_pattern, unsigned char hop_mode, unsigned char freq_tx, unsigned
char freq_rx, unsigned char dirty_tx, unsigned char pkt_type, short power, unsigned long
num_bytes_to_check, unsigned long *bytes_received, unsigned long *bits_with_error);
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
bit_pattern // 0:CONSTANT_ZERO, 1:CONSTANT_ONE, 2:ALTERNATING_1010,
// 3:ALTERNATING_11110000, 4:PSEUDORANDOM
hop_mode // hopping mode, 1:SINGLE_FREQUENCY(default), 2:REDUCED_HOPPING_23
// 5:REDUCED_HOPPING_79, 23:HOP_23, 79:HOP_79
freq_tx // TX frequency of a tester (RX for DUT). 0 - 2402 MHz, 1 - 2403 MHz ...
// 78 - 2480 MHz. Ignored if hopping is ON
freq_rx // RX frequency of a tester (TX for DUT). 0 - 2402 MHz, 1 - 2403 MHz ...
// 78 - 2480 MHz. Ignored if hopping is ON
dirty_tx // dirty transmitter mode. 0: OFF, 1:ON(default)
pkt_type // packet type. If zero, then longest supported packet type.
// The only DH1/3/5 or AUX1 types are supported.
Power // RX power at the receiver input of the DUT in dBm multiplied by 100 (in 0.01dBm)
num_bytes_to_check // minimum number of samples (returned payload bytes) to measure BER
bytes_received // actual number of checked bytes
bits_with_error // number of bits with error
ber_per
Description
This function provides measurement of the Bit Error Rate and the Packet Error Rate at the given RX
frequency. The frequency is TX frequency of a tester. The function can be used for the
RCV/CA/01(02,06)/C(Sensittivity single/multi slot packets, Maximum Input Level ) test cases.
Syntax
unsigned long ber_per(unsigned charbit_pattern,unsigned char hop_mode,unsigned char freq_tx, unsigned
char freq_rx, unsigned char dirty_tx, unsigned char pkt_type, short power, unsigned long
num_bytes_to_check, unsigned long *bytes_received, unsigned long *bits_with_error, unsigned long
*pkts_received, unsigned long *pkts_with_error);
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
bit_pattern // CONSTANT_ZERO = 0, CONSTANT_ONE = 1, ALTERNATING_1010 = 2,
// ALTERNATING_11110000 = 3, PSEUDORANDOM = 4
hop_mode // hopping mode: SINGLE_FREQUENCY=1, REDUCED_HOPPING_23=2,
// REDUCED_HOPPING_79=5, HOP_23=23, HOP_79=79
freq_tx// TX frequency of a tester (RX for DUT).
// 0 - 2402 MHz, 1 - 2403 MHz ... 78 - 2480 MHz. Ignored if hopping is ON