Configuration
This module includes the platform abstraction for radio configuration.
Summary
Functions |
|
---|---|
otPlatRadioGetCaps(otInstance *aInstance)
|
Get the radio capabilities.
|
otPlatRadioGetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t *aThreshold)
|
Get the radio's CCA ED threshold in dBm.
|
otPlatRadioGetIeeeEui64(otInstance *aInstance, uint8_t *aIeeeEui64)
|
void
Get the factory-assigned IEEE EUI-64 for this interface.
|
otPlatRadioGetPromiscuous(otInstance *aInstance)
|
bool
Get the status of promiscuous mode.
|
otPlatRadioGetReceiveSensitivity(otInstance *aInstance)
|
int8_t
Get the radio receive sensitivity value.
|
otPlatRadioGetTransmitPower(otInstance *aInstance, int8_t *aPower)
|
Get the radio's transmit power in dBm.
|
otPlatRadioGetVersionString(otInstance *aInstance)
|
const char *
Get the radio version string.
|
otPlatRadioSetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t aThreshold)
|
Set the radio's CCA ED threshold in dBm.
|
otPlatRadioSetExtendedAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
|
void
Set the Extended Address for address filtering.
|
otPlatRadioSetPanId(otInstance *aInstance, otPanId aPanId)
|
void
Set the PAN ID for address filtering.
|
otPlatRadioSetPromiscuous(otInstance *aInstance, bool aEnable)
|
void
Enable or disable promiscuous mode.
|
otPlatRadioSetShortAddress(otInstance *aInstance, otShortAddress aShortAddress)
|
void
Set the Short Address for address filtering.
|
otPlatRadioSetTransmitPower(otInstance *aInstance, int8_t aPower)
|
Set the radio's transmit power in dBm.
|
Functions
otPlatRadioGetCaps
otRadioCaps otPlatRadioGetCaps( otInstance *aInstance )
Get the radio capabilities.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The radio capability bit vector (see
OT_RADIO_CAP_* definitions). |
otPlatRadioGetCcaEnergyDetectThreshold
otError otPlatRadioGetCcaEnergyDetectThreshold( otInstance *aInstance, int8_t *aThreshold )
Get the radio's CCA ED threshold in dBm.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otPlatRadioGetIeeeEui64
void otPlatRadioGetIeeeEui64( otInstance *aInstance, uint8_t *aIeeeEui64 )
Get the factory-assigned IEEE EUI-64 for this interface.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otPlatRadioGetPromiscuous
bool otPlatRadioGetPromiscuous( otInstance *aInstance )
Get the status of promiscuous mode.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otPlatRadioGetReceiveSensitivity
int8_t otPlatRadioGetReceiveSensitivity( otInstance *aInstance )
Get the radio receive sensitivity value.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The radio receive sensitivity value in dBm.
|
otPlatRadioGetTransmitPower
otError otPlatRadioGetTransmitPower( otInstance *aInstance, int8_t *aPower )
Get the radio's transmit power in dBm.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otPlatRadioGetVersionString
const char * otPlatRadioGetVersionString( otInstance *aInstance )
Get the radio version string.
This is an optional radio driver platform function. If not provided by platform radio driver, OpenThread uses the OpenThread version instead (
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the OpenThread radio version.
|
otGetVersionString()).
otPlatRadioSetCcaEnergyDetectThreshold
otError otPlatRadioSetCcaEnergyDetectThreshold( otInstance *aInstance, int8_t aThreshold )
Set the radio's CCA ED threshold in dBm.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otPlatRadioSetExtendedAddress
void otPlatRadioSetExtendedAddress( otInstance *aInstance, const otExtAddress *aExtAddress )
Set the Extended Address for address filtering.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otPlatRadioSetPanId
void otPlatRadioSetPanId( otInstance *aInstance, otPanId aPanId )
Set the PAN ID for address filtering.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otPlatRadioSetPromiscuous
void otPlatRadioSetPromiscuous( otInstance *aInstance, bool aEnable )
Enable or disable promiscuous mode.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otPlatRadioSetShortAddress
void otPlatRadioSetShortAddress( otInstance *aInstance, otShortAddress aShortAddress )
Set the Short Address for address filtering.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otPlatRadioSetTransmitPower
otError otPlatRadioSetTransmitPower( otInstance *aInstance, int8_t aPower )
Set the radio's transmit power in dBm.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|