工廠診斷
該模塊包括用於診斷功能的平台抽象。
概要
職能 | |
---|---|
otPlatDiagAlarmCallback ( otInstance *aInstance) | void 此功能處理警報事件。 |
otPlatDiagChannelSet (uint8_t aChannel) | void 此功能設置用於工廠診斷的通道。 |
otPlatDiagModeGet (void) | bool 此功能指示是否啟用出廠診斷模式。 |
otPlatDiagModeSet (bool aMode) | void 此功能啟用/禁用出廠診斷模式。 |
otPlatDiagProcess ( otInstance *aInstance, uint8_t aArgsLength, char *aArgs[], char *aOutput, size_t aOutputMaxLen) | 此功能處理工廠診斷命令行。 |
otPlatDiagRadioReceived ( otInstance *aInstance, otRadioFrame *aFrame, otError aError) | void 此功能處理收到的無線電幀。 |
otPlatDiagTxPowerSet (int8_t aTxPower) | void 此功能設置用於工廠診斷的發射功率。 |
職能
otPlatDiagAlarmCallback
void otPlatDiagAlarmCallback( otInstance *aInstance )
此功能處理警報事件。
細節 | |||
---|---|---|---|
參量 |
|
otPlatDiagChannelSet
void otPlatDiagChannelSet( uint8_t aChannel )
此功能設置用於工廠診斷的通道。
細節 | |||
---|---|---|---|
參量 |
|
otPlatDiagModeGet
bool otPlatDiagModeGet( void )
此功能指示是否啟用出廠診斷模式。
細節 | |
---|---|
退貨 | 如果啟用了出廠診斷模式,則為TRUE,否則為FALSE。 |
otPlatDiagModeSet
void otPlatDiagModeSet( bool aMode )
此功能啟用/禁用出廠診斷模式。
細節 | |||
---|---|---|---|
參量 |
|
otPlatDiagProcess
otError otPlatDiagProcess( otInstance *aInstance, uint8_t aArgsLength, char *aArgs[], char *aOutput, size_t aOutputMaxLen )
此功能處理工廠診斷命令行。
細節 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
參量 |
| ||||||||||
返回值 |
|
otPlatDiagRadio已接收
void otPlatDiagRadioReceived( otInstance *aInstance, otRadioFrame *aFrame, otError aError )
此功能處理收到的無線電幀。
細節 | |||||||
---|---|---|---|---|---|---|---|
參量 |
|
otPlatDiagTxPowerSet
void otPlatDiagTxPowerSet( int8_t aTxPower )
此功能設置用於工廠診斷的發射功率。
細節 | |||
---|---|---|---|
參量 |
|