![]() |
![]() |
|
TI-OpenThread
1.08.05.18
|
#include <ti/devices/DeviceFamily.h>#include <DeviceFamily_constructPath(driverlib/rf_ieee_cmd.h)>#include <openthread/instance.h>
Include dependency graph for LP_CC2674R10/thread/thermostat/platform/radio.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | ext_src_match_data_s |
| struct | short_src_match_data_s |
Typedefs | |
| typedef struct __RFC_STRUCT ext_src_match_data_s | ext_src_match_data_t |
| typedef enum platformRadio_address | platformRadio_address |
| typedef enum platformRadio_phyState | platformRadio_phyState |
| typedef struct __RFC_STRUCT short_src_match_data_s | short_src_match_data_t |
Functions | |
| otError | otPlatDiagRadioToneStart (otInstance *aInstance, bool aModulated) |
| otError | otPlatDiagRadioToneStop (otInstance *aInstance) |
| void | rfCoreDiagChannelDisable (uint8_t aChannel) |
| void | rfCoreDiagChannelEnable (uint8_t aChannel) |
| void | rfCorePriorityCoex (bool aEnable) |
| void | rfCoreRequestCoex (bool aEnable) |
Variables | |
| struct __RFC_STRUCT ext_src_match_data_s | __RFC_STRUCT_ATTR |
| #define RX_BUF_SIZE 148 |
Size of the receive buffers in the receive queue.
| #define RF_DRIVER_ABORT 0 |
Value to pass to RF_cancelCmd to signify aborting the command.
documented in source/ti/drivers/rf/RF.h
| #define PLATFORM_RADIO_SRC_MATCH_NONE 0xFF |
Return value used when searching the source match array.
Returned if an address could not be found or if an empty element could not be found.
| #define PLATFORM_RADIO_EXTADD_SRC_MATCH_NUM 10 |
Number of extended addresses in ext_src_match_data_t.
| #define PLATFORM_RADIO_SHORTADD_SRC_MATCH_NUM 10 |
Number of short addresses in short_src_match_data_t.
| #define DATA_ENTRY_LENSZ_BYTE 1 |
size of length field in receive struct.
defined in Table 23-10 of the cc13xx and cc26xx TRM.
| #define RF_EVENT_TX_DONE (1U << 0) |
Event flags for the radio process function
| #define RF_EVENT_ED_SCAN_DONE (1U << 1) |
| #define RF_EVENT_RX_DONE (1U << 2) |
| #define RF_EVENT_RX_ACK_DONE (1U << 3) |
| #define RF_EVENT_SLEEP_YIELD (1U << 4) |
| #define RF_EVENT_BUF_FULL (1U << 5) |
| #define RF_EVENT_RX_CMD_STOP (1U << 6) |
| #define RF_EVENT_TX_CMD_PREEMPTED (1U << 7) |
| #define IEEE802154_FRAME_TYPE_MASK (0x7) |
(IEEE 802.15.4-2006) PSDU.FCF.frameType.
| #define IEEE802154_FRAME_PENDING_MASK (0x40) |
(IEEE 802.15.4-2006) PSDU.FCF.framePending.
| #define IEEE802154_FRAME_TYPE_ACK (0x2) |
(IEEE 802.15.4-2006) frame type: ACK.
| #define IEEE802154_FRAME_PENDING (1<<4) |
(IEEE 802.15.4-2006) PSDU.FCF.bFramePending.
| #define IEEE802154_ACK_LENGTH (5) |
(IEEE 802.15.4-2006) Length of an ack frame.
| #define IEEE802154_ACK_REQUEST (1<<5) |
(IEEE 802.15.4-2006) PSDU.FCF.bAR.
| #define IEEE802154_DSN_OFFSET (2) |
(IEEE 802.15.4-2006) PSDU.sequenceNumber.
| #define IEEE802154_MAC_MIN_BE (3) |
(IEEE 802.15.4-2006) macMinBE.
| #define IEEE802154_MAC_MAX_BE (5) |
(IEEE 802.15.4-2006) macMaxBE.
| #define IEEE802154_MAC_MAX_CSMA_BACKOFFS (4) |
(IEEE 802.15.4-2006) macMaxCSMABackoffs.
| #define IEEE802154_MAC_MAX_FRAMES_RETRIES (3) |
(IEEE 802.15.4-2006) macMaxFrameRetries.
| #define IEEE802154_A_UINT_BACKOFF_PERIOD (20) |
(IEEE 802.15.4-2006 7.4.1) MAC constants.
| #define IEEE802154_A_TURNAROUND_TIME (12) |
(IEEE 802.15.4-2006 6.4.1) PHY constants.
| #define IEEE802154_PHY_SHR_DURATION (10) |
(IEEE 802.15.4-2006 6.4.2) PHY PIB attribute, specifically the O-QPSK PHY.
| #define IEEE802154_PHY_SYMBOLS_PER_OCTET (2) |
(IEEE 802.15.4-2006 6.4.2) PHY PIB attribute, specifically the O-QPSK PHY.
| #define IEEE802154_MAC_ACK_WAIT_DURATION |
(IEEE 802.15.4-2006 7.4.2) macAckWaitDuration PIB attribute.
| #define IEEE802154_SYMBOLS_PER_SEC (62500) |
(IEEE 802.15.4-2006 6.5.3.2) O-QPSK symbol rate.
| #define PLATFORM_RADIO_RAT_TICKS_PER_SEC (4000000) |
Frequency of the Radio Timer module.
4MHz clock.
| #define PLATFORM_RADIO_INVALID_RSSI (127) |
Invalid RSSI value returned from an ED scan.
| typedef struct __RFC_STRUCT ext_src_match_data_s ext_src_match_data_t |
Structure for source matching extended addresses.
Defined in Table 23-73 of the cc13xx and cc26xx TRM.
| typedef struct __RFC_STRUCT short_src_match_data_s short_src_match_data_t |
Structure for source matching short addresses.
Defined in Table 23-74 of the cc13xx and cc26xx TRM.
| typedef enum platformRadio_address platformRadio_address |
Enum for specifying short/ext address type
| typedef enum platformRadio_phyState platformRadio_phyState |
This enum represents the state of a radio.
Initially, a radio is in the Disabled state.
The following are valid radio state transitions for the platform
These states slightly differ from the states in include/openthread/platform/radio.h from OpenThread. The additional states the phy can be in are due to the asynchronous nature of the CM0 radio core.
| state | description |
|---|---|
| Disabled | The rfcore powerdomain is off and the RFCPE is off |
| Sleep | The RFCORE PD is on, and the RFCPE is in IEEE mode |
| Receive | The RFCPE is running a CMD_IEEE_RX |
| EdScan | The RFCPE is running a CMD_IEEE_ED_SCAN |
| Transmit | The RFCPE is running a transmit command string |
Enum for specifying short/ext address type
This enum represents the state of a radio.
Initially, a radio is in the Disabled state.
The following are valid radio state transitions for the platform
These states slightly differ from the states in include/openthread/platform/radio.h from OpenThread. The additional states the phy can be in are due to the asynchronous nature of the CM0 radio core.
| state | description |
|---|---|
| Disabled | The rfcore powerdomain is off and the RFCPE is off |
| Sleep | The RFCORE PD is on, and the RFCPE is in IEEE mode |
| Receive | The RFCPE is running a CMD_IEEE_RX |
| EdScan | The RFCPE is running a CMD_IEEE_ED_SCAN |
| Transmit | The RFCPE is running a transmit command string |
| otError otPlatDiagRadioToneStart | ( | otInstance * | aInstance, |
| bool | aModulated | ||
| ) |
The diagnostic module calls this function to begin transmitting a continuous tone. The tone will be transmitted on the current receive channel.
| [in] | aInstance | The OpenThread instance structure. |
| [in] | aModulated | Indicates whether or not the tone was modulated or not. |
| OT_ERROR_NONE | Successfully started sending the RF tone. |
| OT_ERROR_NOT_IMPLEMENTED | The radio doesn't support sending a test tone. |
Function documented in platform/radio.h
References platformRadio_phyState_Receive, platformRadio_phyState_Sleep, rfCoreExecuteAbortCmd(), rfCoreSendTxTestCmd(), sReceiveCmdHandle, sRfHandle, sState, and sTxTestCmdHandle.
Referenced by PlatDiag_processTone().
| otError otPlatDiagRadioToneStop | ( | otInstance * | aInstance | ) |
The diagnostic module calls this to stop transmitting a continuous tone.
| [in] | aInstance | The OpenThread instance structure. |
| OT_ERROR_NONE | Successfully stopped sending the RF tone. |
| OT_ERROR_NOT_IMPLEMENTED | The radio doesn't support sending a test tone. |
Function documented in platform/radio.h
References platformRadio_phyState_Receive, platformRadio_phyState_Sleep, rfCoreExecuteAbortCmd(), rfCoreSendReceiveCmd(), sRfHandle, sState, and sTxTestCmdHandle.
Referenced by PlatDiag_processTone().
| void rfCoreDiagChannelDisable | ( | uint8_t | aChannel | ) |
The diagnostic module calls this to set the channel and disable channel switching.
This function was added to support automated Thread Test Harness execution. It is intended to simulate the device being placed within a shield box by switching the radio to an unused channel and disallowing the stack switching back to the set channel.
| [in] | aChannel | The new (empty) channel. |
Function documented in radio.h
References otPlatRadioReceive(), and sDisableChannel.
Referenced by PlatDiag_processShield().
| void rfCoreDiagChannelEnable | ( | uint8_t | aChannel | ) |
The diagnostic module calls this to reset the channel and re-enable channel switching.
| [in] | aChannel | The original channel. |
Function documented in radio.h
References otPlatRadioReceive(), and sDisableChannel.
Referenced by PlatDiag_processShield().
| void rfCorePriorityCoex | ( | bool | aEnable | ) |
Set the priority value used for CoEx operation.
Enable or Disable the priority signal for RF operations in the coexistence module. This will set the global option for all RF commands to assert the priority line. Assertion polarity is defined by the RF Library module. These options are only used in 3-wire and greater configuration.
| [in] | aEnable | sets the Priority signal; true is asserted, false is de-asserted. |
Function documented in radio.h
References sPriorityCoex.
| void rfCoreRequestCoex | ( | bool | aEnable | ) |
Set the request value used for CoEx operation.
Receive operations do not normally assert the request line for CoEx operations. This API sets the global enable/disable of the request during RX. Assertion polarity is defined by the RF Library module. These options are only used in 2-wire and greater configuration.
| [in] | aEnable | sets the behavior of the Request signal |
Function documented in radio.h
References sRequestCoex.
| struct __RFC_STRUCT short_src_match_data_s __RFC_STRUCT_ATTR |