132 OT_RADIO_STATE_DISABLED = 0,
133 OT_RADIO_STATE_SLEEP = 1,
134 OT_RADIO_STATE_RECEIVE = 2,
135 OT_RADIO_STATE_TRANSMIT = 3,
struct otRadioFrame otRadioFrame
This structure represents an IEEE 802.15.4 radio frame.
Invalid or unknown RSSI value.
Definition: radio.h:80
This type represents all the static / global variables used by OpenThread allocated in one place...
Definition: openthread-instance.h:59
void otPlatRadioSetPromiscuous(otInstance *aInstance, bool aEnable)
Enable or disable promiscuous mode.
This file defines the types and structures used in the OpenThread library API.
void otPlatRadioClearSrcMatchExtEntries(otInstance *aInstance)
Clear all the extended/long addresses from source address match table.
None.
Definition: radio.h:89
int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance)
Get the radio receive sensitivity value.
void otPlatRadioTxStarted(otInstance *aInstance, otRadioFrame *aFrame)
The radio driver calls this method to notify OpenThread that the transmission has started...
Definition: mac.cpp:936
otRadioCaps otPlatRadioGetCaps(otInstance *aInstance)
Get the radio capabilities.
otError otPlatRadioReceive(otInstance *aInstance, uint8_t aChannel)
Transitioning the radio from Sleep to Receive.
void otPlatDiagRadioReceiveDone(otInstance *aInstance, otRadioFrame *aFrame, otError aError)
The radio driver calls this method to notify OpenThread diagnostics module of a received frame...
Definition: diag_process.cpp:415
otError otPlatRadioDisable(otInstance *aInstance)
Disable the radio.
int8_t otPlatRadioGetRssi(otInstance *aInstance)
Get the most recent RSSI measurement.
otRadioFrame * otPlatRadioGetTransmitBuffer(otInstance *aInstance)
The radio transitions from Transmit to Receive.
uint8_t * mPsdu
The PSDU.
Definition: radio.h:101
uint8_t mLength
Length of the PSDU.
Definition: radio.h:102
2.4 GHz IEEE 802.15.4-2006
Definition: radio.h:73
otError otPlatRadioTransmit(otInstance *aInstance, otRadioFrame *aFrame)
This method begins the transmit sequence on the radio.
This structure represents an IEEE 802.15.4 radio frame.
Definition: radio.h:99
Radio supports Energy Scans.
Definition: radio.h:91
2.4 GHz IEEE 802.15.4-2006
Definition: radio.h:72
bool mSecurityValid
Security Enabled flag is set and frame passes security checks.
Definition: radio.h:107
void otPlatRadioSetDefaultTxPower(otInstance *aInstance, int8_t aPower)
Set the radio Tx power used for auto-generated frames.
LQI measurement not supported.
Definition: radio.h:79
otRadioState otPlatRadioGetState(otInstance *aInstance)
Get current state of the radio.
2.4 GHz IEEE 802.15.4-2006
Definition: radio.h:71
void otPlatRadioSetPanId(otInstance *aInstance, uint16_t aPanId)
Set the PAN ID for address filtering.
bool mIsARetx
Set to true if this frame is a retransmission. Should be ignored by radio driver. ...
Definition: radio.h:109
Radio supports AckTime event.
Definition: radio.h:90
2.4 GHz IEEE 802.15.4 (kilobits per second)
Definition: radio.h:74
Radio supports transmission retry logic with collision avoidance (CSMA).
Definition: radio.h:92
void otPlatRadioSetShortAddress(otInstance *aInstance, uint16_t aShortAddress)
Set the Short Address for address filtering.
uint8_t mLqi
Link Quality Indicator for received frames.
Definition: radio.h:105
otRadioState
This structure represents the state of a radio.
Definition: radio.h:130
uint8_t mChannel
Channel used to transmit/receive the frame.
Definition: radio.h:103
otRadioCaps
This enum represents radio capabilities.
Definition: radio.h:87
void otPlatRadioReceiveDone(otInstance *aInstance, otRadioFrame *aFrame, otError aError)
The radio driver calls this method to notify OpenThread of a received frame.
Definition: mac.cpp:1502
otError otPlatRadioSleep(otInstance *aInstance)
Transition the radio from Receive to Sleep.
2.4 GHz IEEE 802.15.4-2006
Definition: radio.h:70
bool otPlatRadioIsEnabled(otInstance *aInstance)
Check whether radio is enabled or not.
void otPlatRadioClearSrcMatchShortEntries(otInstance *aInstance)
Clear all short addresses from the source address match table.
uint8_t mMaxTxAttempts
Max number of transmit attempts for an outbound frame.
Definition: radio.h:106
otError otPlatRadioEnable(otInstance *aInstance)
Enable the radio.
void otPlatRadioEnergyScanDone(otInstance *aInstance, int8_t aEnergyScanMaxRssi)
The radio driver calls this method to notify OpenThread that the energy scan is complete.
Definition: mac.cpp:336
uint16_t mUsec
The timestamp when the frame was received (microseconds, the offset to mMsec).
Definition: radio.h:123
This type represents the IEEE 802.15.4 Extended Address.
Definition: types.h:402
uint32_t mMsec
The timestamp when the frame was received (milliseconds).
Definition: radio.h:116
otError otPlatRadioClearSrcMatchShortEntry(otInstance *aInstance, const uint16_t aShortAddress)
Remove a short address from the source address match table.
void otPlatRadioTxDone(otInstance *aInstance, otRadioFrame *aFrame, otRadioFrame *aAckFrame, otError aError)
The radio driver calls this function to notify OpenThread that the transmit operation has completed...
Definition: mac.cpp:956
otError otPlatRadioAddSrcMatchShortEntry(otInstance *aInstance, const uint16_t aShortAddress)
Add a short address to the source address match table.
void otPlatDiagRadioTransmitDone(otInstance *aInstance, otRadioFrame *aFrame, otError aError)
The radio driver calls this method to notify OpenThread diagnostics module that the transmission has ...
Definition: diag_process.cpp:408
otError otPlatRadioEnergyScan(otInstance *aInstance, uint8_t aScanChannel, uint16_t aScanDuration)
This method begins the energy scan sequence on the radio.
int8_t mPower
Transmit/receive power in dBm.
Definition: radio.h:104
otError otPlatRadioAddSrcMatchExtEntry(otInstance *aInstance, const otExtAddress *aExtAddress)
Add an extended address to the source address match table.
bool mDidTX
Set to true if this frame sent from the radio. Ignored by radio driver.
Definition: radio.h:108
Radio supports CSMA backoff for frame transmission (but no retry).
Definition: radio.h:93
Number of bits per octet.
Definition: radio.h:76
aMaxPHYPacketSize (IEEE 802.15.4-2006)
Definition: radio.h:69
void otPlatRadioEnableSrcMatch(otInstance *aInstance, bool aEnable)
Enable/Disable source address match feature.
otError otPlatRadioClearSrcMatchExtEntry(otInstance *aInstance, const otExtAddress *aExtAddress)
Remove an extended address from the source address match table.
otError
This enumeration represents error codes used throughout OpenThread.
Definition: types.h:107
void otPlatRadioGetIeeeEui64(otInstance *aInstance, uint8_t *aIeeeEui64)
Get the factory-assigned IEEE EUI-64 for this interface.
void otPlatRadioSetExtendedAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
Set the Extended Address for address filtering.
bool otPlatRadioGetPromiscuous(otInstance *aInstance)
Get the status of promiscuous mode.