44 #define __RFC_STRUCT __attribute__ ((aligned (4)))
99 uint8_t triggerType:4;
130 #define CMD_BLE_SLAVE 0x1801
140 uint8_t triggerType:4;
171 #define CMD_BLE_MASTER 0x1802
181 uint8_t triggerType:4;
212 #define CMD_BLE_ADV 0x1803
222 uint8_t triggerType:4;
253 #define CMD_BLE_ADV_DIR 0x1804
263 uint8_t triggerType:4;
294 #define CMD_BLE_ADV_NC 0x1805
304 uint8_t triggerType:4;
335 #define CMD_BLE_ADV_SCAN 0x1806
345 uint8_t triggerType:4;
376 #define CMD_BLE_SCANNER 0x1807
386 uint8_t triggerType:4;
417 #define CMD_BLE_INITIATOR 0x1808
427 uint8_t triggerType:4;
458 #define CMD_BLE_GENERIC_RX 0x1809
468 uint8_t triggerType:4;
499 #define CMD_BLE_TX_TEST 0x180A
509 uint8_t triggerType:4;
540 #define CMD_BLE_ADV_PAYLOAD 0x1001
559 uint8_t bAutoFlushIgnored:1;
560 uint8_t bAutoFlushCrcErr:1;
561 uint8_t bAutoFlushEmpty:1;
562 uint8_t bIncludeLenByte:1;
563 uint8_t bIncludeCrc:1;
564 uint8_t bAppendRssi:1;
565 uint8_t bAppendStatus:1;
566 uint8_t bAppendTimestamp:1;
573 uint8_t bAutoEmpty:1;
575 uint8_t bLlCtrlAckRx:1;
576 uint8_t bLlCtrlAckPending:1;
596 uint8_t bAutoFlushIgnored:1;
597 uint8_t bAutoFlushCrcErr:1;
598 uint8_t bAutoFlushEmpty:1;
599 uint8_t bIncludeLenByte:1;
600 uint8_t bIncludeCrc:1;
601 uint8_t bAppendRssi:1;
602 uint8_t bAppendStatus:1;
603 uint8_t bAppendTimestamp:1;
610 uint8_t bAutoEmpty:1;
612 uint8_t bLlCtrlAckRx:1;
613 uint8_t bLlCtrlAckPending:1;
622 uint8_t triggerType:4;
643 uint8_t bAutoFlushIgnored:1;
644 uint8_t bAutoFlushCrcErr:1;
645 uint8_t bAutoFlushEmpty:1;
646 uint8_t bIncludeLenByte:1;
647 uint8_t bIncludeCrc:1;
648 uint8_t bAppendRssi:1;
649 uint8_t bAppendStatus:1;
650 uint8_t bAppendTimestamp:1;
657 uint8_t bAutoEmpty:1;
659 uint8_t bLlCtrlAckRx:1;
660 uint8_t bLlCtrlAckPending:1;
669 uint8_t triggerType:4;
681 uint8_t triggerType:4;
701 uint8_t bAutoFlushIgnored:1;
702 uint8_t bAutoFlushCrcErr:1;
703 uint8_t bAutoFlushEmpty:1;
704 uint8_t bIncludeLenByte:1;
705 uint8_t bIncludeCrc:1;
706 uint8_t bAppendRssi:1;
707 uint8_t bAppendStatus:1;
708 uint8_t bAppendTimestamp:1;
711 uint8_t advFilterPolicy:2;
712 uint8_t deviceAddrType:1;
719 uint8_t peerAddrType:1;
720 uint8_t bStrictLenFilter:1;
736 uint8_t triggerType:4;
756 uint8_t bAutoFlushIgnored:1;
757 uint8_t bAutoFlushCrcErr:1;
758 uint8_t bAutoFlushEmpty:1;
759 uint8_t bIncludeLenByte:1;
760 uint8_t bIncludeCrc:1;
761 uint8_t bAppendRssi:1;
762 uint8_t bAppendStatus:1;
763 uint8_t bAppendTimestamp:1;
766 uint8_t scanFilterPolicy:1;
767 uint8_t bActiveScan:1;
771 uint8_t deviceAddrType:1;
774 uint8_t bStrictLenFilter:1;
775 uint8_t bAutoWlIgnore:1;
786 uint8_t logUpperLimit:4;
787 uint8_t bLastSucceeded:1;
788 uint8_t bLastFailed:1;
798 uint8_t triggerType:4;
806 uint8_t triggerType:4;
828 uint8_t bAutoFlushIgnored:1;
829 uint8_t bAutoFlushCrcErr:1;
830 uint8_t bAutoFlushEmpty:1;
831 uint8_t bIncludeLenByte:1;
832 uint8_t bIncludeCrc:1;
833 uint8_t bAppendRssi:1;
834 uint8_t bAppendStatus:1;
835 uint8_t bAppendTimestamp:1;
838 uint8_t bUseWhiteList:1;
839 uint8_t bDynamicWinOffset:1;
842 uint8_t deviceAddrType:1;
844 uint8_t peerAddrType:1;
845 uint8_t bStrictLenFilter:1;
858 uint8_t triggerType:4;
866 uint8_t triggerType:4;
888 uint8_t bAutoFlushIgnored:1;
889 uint8_t bAutoFlushCrcErr:1;
890 uint8_t bAutoFlushEmpty:1;
891 uint8_t bIncludeLenByte:1;
892 uint8_t bIncludeCrc:1;
893 uint8_t bAppendRssi:1;
894 uint8_t bAppendStatus:1;
895 uint8_t bAppendTimestamp:1;
905 uint8_t triggerType:4;
924 uint8_t payloadLength;
930 uint8_t bOverrideDefault:1;
933 uint8_t bUsePrbs15:1;
940 uint8_t triggerType:4;
978 uint8_t bTimeStampValid:1;
979 uint8_t bLastCrcErr:1;
980 uint8_t bLastIgnored:1;
981 uint8_t bLastEmpty:1;
1086 uint8_t bIrkValid:1;
uint8_t crcInit0
CRC initialization value used on the connection – least significant byte.
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
dataQueue_t * pTxQ
Pointer to transmit queue.
struct __RFC_STRUCT rfc_bleAdvOutput_s rfc_bleAdvOutput_t
ratmr_t endTime
Time used together with endTrigger that causes the device to end the advertiser event as soon as allo...
rfc_bleWhiteListEntry_t * pWhiteList
Pointer to white list or peer address (directed advertiser)
struct __RFC_STRUCT rfc_bleSlavePar_s rfc_bleSlavePar_t
uint8_t nRxIgnored
Number of packets that have been received with CRC OK and ignored due to repeated sequence number...
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
uint16_t nBackedOffScanReq
Number of SCAN_REQ packets not sent due to backoff procedure.
int8_t lastRssi
The RSSI of the last received packet.
uint16_t commandNo
The command ID number 0x1805.
uint16_t randomState
State for pseudo-random number generation used in backoff procedure.
uint16_t nTxAdvInd
Number of ADV*_IND packets completely transmitted.
uint8_t * pParams
Pointer to command specific parameter structure.
dataQueue_t * pRxQ
Pointer to receive queue.
uint16_t nRxNok
Number of packets received with CRC error.
rfc_bleInitiatorOutput_t * pOutput
Pointer to command specific output structure.
struct __RFC_STRUCT rfc_bleGenericRxOutput_s rfc_bleGenericRxOutput_t
struct __RFC_STRUCT rfc_bleMasterSlavePar_s rfc_bleMasterSlavePar_t
rfc_bleSlavePar_t * pParams
Pointer to command specific parameter structure.
rfc_bleAdvPar_t * pParams
Pointer to command specific parameter structure.
ratmr_t timeStamp
Time stamp of the last received packet.
struct __RFC_STRUCT rfc_bleWhiteListEntry_s rfc_bleWhiteListEntry_t
struct __RFC_STRUCT rfc_CMD_BLE_ADV_PAYLOAD_s rfc_CMD_BLE_ADV_PAYLOAD_t
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
rfc_bleGenericRxPar_t * pParams
Pointer to command specific parameter structure.
ratmr_t timeStamp
Time stamp of the last successfully received ADV*_IND packet that was not ignored.
uint16_t * pDeviceAddress
Pointer to device address used for this device.
uint8_t size
Number of while list entries. Used in the first entry of the list only.
uint8_t scanReqLen
Size of scan request data.
rfc_bleWhiteListEntry_t * pWhiteList
Pointer to white list or peer address.
uint16_t nRxAdvIgnored
Number of ADV*_IND packets received with CRC OK, but ignored.
rfc_bleMasterSlaveOutput_t * pOutput
Pointer to command specific output structure.
uint8_t nTxCtrl
Number of unique LL control packets from the Tx queue that have been transmitted. ...
ratmr_t endTime
Time used together with endTrigger that causes the device to end the Rx operation.
uint8_t channel
Channel to use 0–39: BLE advertising/data channel number 60–207: Custom frequency; (2300 + channe...
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
uint8_t crcInit0
CRC initialization value used on the connection – least significant byte.
rfc_bleInitiatorPar_t * pParams
Pointer to command specific parameter structure.
struct __RFC_STRUCT rfc_bleScannerOutput_s rfc_bleScannerOutput_t
struct __RFC_STRUCT rfc_bleGenericRxPar_s rfc_bleGenericRxPar_t
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
uint8_t maxNack
Maximum number of NACKs received before operation ends. 0: No limit.
struct __RFC_STRUCT rfc_CMD_BLE_MASTER_s rfc_CMD_BLE_MASTER_t
uint8_t channel
Channel to use 0–39: BLE advertising/data channel number 60–207: Custom frequency; (2300 + channe...
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
rfc_bleScannerPar_t * pParams
Pointer to command specific parameter structure.
uint8_t * pScanReqData
Pointer to buffer containing SCAN_REQ data.
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
uint8_t nRxScanReq
Number of SCAN_REQ packets received OK and not ignored.
struct __RFC_STRUCT rfc_bleRxStatus_s rfc_bleRxStatus_t
ratmr_t timeStamp
Slave operation: Time stamp of first received packet.
struct __RFC_STRUCT rfc_CMD_BLE_INITIATOR_s rfc_CMD_BLE_INITIATOR_t
rfc_bleMasterPar_t * pParams
Pointer to command specific parameter structure.
dataQueue_t * pRxQ
Pointer to receive queue. May be NULL; if so, received packets are not stored.
struct __RFC_STRUCT rfc_bleTxTestPar_s rfc_bleTxTestPar_t
uint16_t numPackets
Number of packets to transmit 0: Transmit unlimited number of packets.
BLE Non-Connectable Advertiser Command.
dataQueue_t * pRxQ
Pointer to receive queue.
uint16_t commandNo
The command ID number 0x1802.
uint16_t * pDeviceAddress
Pointer to device address used for this device.
dataQueue_t * pRxQ
Pointer to receive queue.
uint8_t nTxEntryDone
Number of packets from the Tx queue that have been finished (ACK'ed)
uint8_t nRxAdvOk
Number of ADV*_IND packets received with CRC OK and not ignored.
uint16_t commandNo
The command ID number 0x180A.
uint16_t address
Least significant 16 bits of the address contained in the entry.
uint8_t scanRspLen
Size of scan response data.
ratmr_t timeoutTime
Time used together with timeoutTrigger that defines timeout of the first receive operation.
uint16_t nRxAdvOk
Number of ADV*_IND packets received with CRC OK and not ignored.
uint32_t accessAddress
Access address used on the connection.
ratmr_t timeoutTime
Time used together with timeoutTrigger that causes the device to stop receiving as soon as allowed...
uint8_t nRxAdvBufFull
Number of ADV*_IND packets received that did not fit in Rx queue.
struct __RFC_STRUCT rfc_radioOp_s rfc_radioOp_t
uint16_t commandNo
The command ID number 0x1808.
struct __RFC_STRUCT rfc_CMD_BLE_SCANNER_s rfc_CMD_BLE_SCANNER_t
uint8_t nRxConnectReq
Number of CONNECT_REQ packets received OK and not ignored.
rfc_bleAdvOutput_t * pOutput
Pointer to command specific output structure.
struct __RFC_STRUCT rfc_CMD_BLE_ADV_DIR_s rfc_CMD_BLE_ADV_DIR_t
uint8_t crcInit2
CRC initialization value used on the connection – most significant byte.
uint16_t nRxOk
Number of packets received with CRC OK.
uint16_t commandNo
The command ID number.
uint8_t nRxScanRspBufFull
Number of SCAN_RSP packets received that did not fit in Rx queue.
uint16_t nRxScanRspIgnored
Number of SCAN_RSP packets received with CRC OK, but ignored.
struct __RFC_STRUCT rfc_CMD_BLE_TX_TEST_s rfc_CMD_BLE_TX_TEST_t
rfc_bleAdvPar_t * pParams
Pointer to command specific parameter structure.
uint8_t maxPkt
Maximum number of packets transmitted in the operation before it ends. 0: No limit.
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
uint16_t commandNo
The command ID number 0x1001.
ratmr_t timeStamp
Time stamp of the last received packet.
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
uint8_t nRxCtrl
Number of LL control packets that have been received with CRC OK and not ignored. ...
uint16_t nRxScanRspOk
Number of SCAN_RSP packets received with CRC OK and not ignored.
uint16_t commandNo
The command ID number 0x1807.
uint8_t nRxOk
Number of packets that have been received with payload, CRC OK and not ignored.
uint8_t channel
Channel to use 0–39: BLE advertising/data channel number 60–207: Custom frequency; (2300 + channe...
uint16_t * pDeviceAddress
Pointer to device address used for this device.
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
uint8_t nTxCtrlAckAck
Number of LL control packets that have been ACK'ed and where an ACK has been sent in response...
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
dataQueue_t * pRxQ
Pointer to receive queue.
struct __RFC_STRUCT rfc_bleAdvPar_s rfc_bleAdvPar_t
uint16_t commandNo
The command ID number 0x1806.
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
uint8_t nTxScanRsp
Number of SCAN_RSP packets transmitted.
BLE PHY Test Transmitter Command.
dataQueue_t * pRxQ
Pointer to receive queue.
uint8_t maxPkt
Maximum number of packets transmitted in the operation before it ends. 0: No limit.
rfc_bleAdvOutput_t * pOutput
Pointer to command specific output structure.
uint8_t connectReqLen
Size of connect request data.
dataQueue_t * pTxQ
Pointer to transmit queue.
ratmr_t endTime
Time used together with endTrigger that causes the device to end the Test Tx operation.
uint8_t channel
Channel to use 0–39: BLE advertising/data channel number 60–207: Custom frequency; (2300 + channe...
uint8_t nTx
Total number of packets (including auto-empty and retransmissions) that have been transmitted...
rfc_bleAdvOutput_t * pOutput
Pointer to command specific output structure.
uint16_t nRxAdvIgnored
Number of ADV*_IND packets received with CRC OK, but ignored.
uint8_t crcInit2
CRC initialization value used on the connection – most significant byte.
uint8_t advLen
Size of advertiser data.
uint32_t accessAddress
Access address used on the connection.
uint8_t crcInit2
CRC initialization value used on the connection – most significant byte.
int8_t lastRssi
RSSI of last received packet.
uint8_t * pConnectReqData
Pointer to buffer containing LLData to go in the CONNECT_REQ.
uint16_t nRxBufFull
Number of packets that have been received and discarded due to lack of buffer space.
uint32_t ratmr_t
Type definition for RAT.
uint16_t commandNo
The command ID number 0x1809.
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
struct __RFC_STRUCT rfc_bleScannerPar_s rfc_bleScannerPar_t
uint16_t nTxScanReq
Number of transmitted SCAN_REQ packets.
int8_t lastRssi
The RSSI of the last received packet.
rfc_bleWhiteListEntry_t * pWhiteList
Pointer to white list.
ratmr_t endTime
Time used together with endTrigger that causes the device to end the connection event as soon as allo...
uint8_t maxNack
Maximum number of NACKs received before operation ends. 0: No limit.
struct __RFC_STRUCT rfc_bleMasterSlaveOutput_s rfc_bleMasterSlaveOutput_t
rfc_bleAdvPar_t * pParams
Pointer to command specific parameter structure.
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
uint32_t accessAddress
Access address used on the connection.
uint8_t channel
Channel to use 0–39: BLE advertising/data channel number 60–207: Custom frequency; (2300 + channe...
struct __RFC_STRUCT rfc_CMD_BLE_ADV_NC_s rfc_CMD_BLE_ADV_NC_t
uint32_t accessAddress
Access address used on the connection.
uint8_t * pAdvData
Pointer to buffer containing ADV*_IND data.
uint8_t payloadType
0: Advertising data 1: Scan response data
BLE Update Advertising Payload Command.
uint16_t commandNo
The command ID number 0x1803.
int8_t lastRssi
The RSSI of the last received packet.
uint16_t nRxAdvNok
Number of ADV*_IND packets received with CRC error.
struct __RFC_STRUCT rfc_CMD_BLE_GENERIC_RX_s rfc_CMD_BLE_GENERIC_RX_t
uint16_t nTx
Number of packets transmitted.
uint16_t nRxAdvNok
Number of ADV*_IND packets received with CRC error.
rfc_bleAdvOutput_t * pOutput
Pointer to command specific output structure.
uint8_t channel
Channel to use 0–39: BLE advertising/data channel number 60–207: Custom frequency; (2300 + channe...
uint8_t crcInit0
CRC initialization value used on the connection – least significant byte.
uint16_t nRxScanRspNok
Number of SCAN_RSP packets received with CRC error.
struct __RFC_STRUCT rfc_bleRadioOp_s rfc_bleRadioOp_t
uint8_t nRxCtrlAck
Number of LL control packets that have been received with CRC OK and not ignored, and then ACK'ed...
ratmr_t timeoutTime
Time used together with timeoutTrigger that causes the device to stop receiving as soon as allowed...
uint8_t * pNewData
Pointer to the buffer containing the new data.
rfc_bleTxTestPar_t * pParams
Pointer to command specific parameter structure.
int8_t lastRssi
The RSSI of the last received packet.
dataQueue_t * pRxQ
Pointer to receive queue.
uint8_t nTxCtrlAck
Number of LL control packets from the Tx queue that have been finished (ACK'ed)
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
ratmr_t endTime
Time used together with endTrigger that causes the device to end the connection event as soon as allo...
rfc_bleTxTestOutput_t * pOutput
Pointer to command specific output structure.
uint8_t * pScanRspData
Pointer to buffer containing SCAN_RSP data.
Type definition for a data queue.
uint8_t byteVal
If config.bOverride is 1, value of each byte to be sent.
uint32_t addressHi
Most significant 32 bits of the address contained in the entry.
uint8_t crcInit1
CRC initialization value used on the connection – middle byte.
uint8_t channel
Channel to use 0–39: BLE advertising/data channel number 60–207: Custom frequency; (2300 + channe...
struct __RFC_STRUCT rfc_bleTxTestOutput_s rfc_bleTxTestOutput_t
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
ratmr_t timeStamp
Time stamp of the received ADV*_IND packet that caused transmission of CONNECT_REQ.
uint8_t crcInit1
CRC initialization value used on the connection – middle byte.
uint8_t bRepeat
0: End operation after receiving a packet 1: Restart receiver after receiving a packet ...
uint8_t crcInit0
CRC initialization value used on the connection – least significant byte.
uint8_t channel
Channel to use 0–39: BLE advertising/data channel number 60–207: Custom frequency; (2300 + channe...
uint8_t nRxBufFull
Number of packets received that did not fit in Rx queue.
rfc_bleMasterSlaveOutput_t * pOutput
Pointer to command specific output structure.
ratmr_t connectTime
Indication of timer value of the first possible start time of the first connection event...
uint8_t * pOutput
Pointer to command specific output structure.
uint8_t channel
Channel to use 0–39: BLE advertising/data channel number 60–207: Custom frequency; (2300 + channe...
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
uint8_t crcInit2
CRC initialization value used on the connection – most significant byte.
uint16_t commandNo
The command ID number 0x1804.
dataQueue_t * pTxQ
Pointer to transmit queue.
uint8_t packetType
The packet type to be used, encoded according to the Bluetooth 4.0 spec, Volume 2, Part E, Section 7.8.29.
struct __RFC_STRUCT rfc_bleInitiatorPar_s rfc_bleInitiatorPar_t
uint16_t nRxIgnored
Number of packets received with CRC OK, but ignored.
struct __RFC_STRUCT rfc_bleInitiatorOutput_s rfc_bleInitiatorOutput_t
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
uint8_t maxPkt
Maximum number of packets transmitted in the operation before it ends. 0: No limit.
struct __RFC_STRUCT rfc_CMD_BLE_ADV_SCAN_s rfc_CMD_BLE_ADV_SCAN_t
BLE Generic Receiver Command.
struct __RFC_STRUCT rfc_CMD_BLE_SLAVE_s rfc_CMD_BLE_SLAVE_t
BLE Connectable Directed Advertiser Command.
uint8_t crcInit1
CRC initialization value used on the connection – middle byte.
BLE Scannable Undirected Advertiser Command.
uint8_t nRxBufFull
Number of packets that have been received and discarded due to lack of buffer space.
rfc_bleGenericRxOutput_t * pOutput
Pointer to command specific output structure.
uint8_t channel
Channel to use 0–39: BLE advertising/data channel number 60–207: Custom frequency; (2300 + channe...
struct __RFC_STRUCT rfc_bleMasterPar_s rfc_bleMasterPar_t
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
struct __RFC_STRUCT rfc_CMD_BLE_ADV_s rfc_CMD_BLE_ADV_t
uint8_t maxNack
Maximum number of NACKs received before operation ends. 0: No limit.
uint8_t nRxAdvBufFull
Number of ADV*_IND packets received that did not fit in Rx queue.
BLE Connectable Undirected Advertiser Command.
rfc_bleAdvPar_t * pParams
Pointer to the parameter structure to update.
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
uint8_t crcInit1
CRC initialization value used on the connection – middle byte.
uint16_t backoffCount
Parameter backoffCount used in backoff procedure, cf. Bluetooth 4.0 spec.
rfc_bleAdvPar_t * pParams
Pointer to command specific parameter structure.
uint16_t commandNo
The command ID number 0x1801.
uint16_t nRxNok
Number of packets received with CRC error.
uint8_t channel
Channel to use 0–39: BLE advertising/data channel number 60–207: Custom frequency; (2300 + channe...
rfc_bleScannerOutput_t * pOutput
Pointer to command specific output structure.
uint8_t nTxConnectReq
Number of transmitted CONNECT_REQ packets.