mirror of
https://github.com/espressif/openthread.git
synced 2026-08-12 13:47:47 +00:00
@@ -201,6 +201,14 @@ ThreadError otPlatRadioEnable(void);
|
||||
*/
|
||||
ThreadError otPlatRadioDisable(void);
|
||||
|
||||
/**
|
||||
* Check whether radio is enabled or not.
|
||||
*
|
||||
* @retval ::true radio is enabled.
|
||||
* @retval ::false radio is disabled.
|
||||
*/
|
||||
bool otPlatRadioIsEnabled(void);
|
||||
|
||||
/**
|
||||
* Transition the radio from Receive to Sleep.
|
||||
* Turn off the radio.
|
||||
|
||||
+10
-10
@@ -55,7 +55,15 @@ extern "C" {
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get random stream.
|
||||
* Get a 32-bit random value.
|
||||
*
|
||||
* @returns A 32-bit random value.
|
||||
*
|
||||
*/
|
||||
uint32_t otPlatRandomGet(void);
|
||||
|
||||
/**
|
||||
* Get true random stream.
|
||||
*
|
||||
* @param[in] aInputLength The expected size of random values.
|
||||
* @param[out] aOutput A pointer to the buffer for the generated random stream. The pointer should never be NULL.
|
||||
@@ -67,15 +75,7 @@ extern "C" {
|
||||
* @retval kThreadError_Fail Generate random fail.
|
||||
* @retval kThreadError_InvalidArgs Invalid args.
|
||||
*/
|
||||
ThreadError otPlatSecureRandomGet(uint16_t aInputLength, uint8_t *aOutput, uint16_t *aOutputLength);
|
||||
|
||||
/**
|
||||
* Get a 32-bit true random value.
|
||||
*
|
||||
* @returns A 32-bit true random value.
|
||||
*
|
||||
*/
|
||||
uint32_t otPlatRandomGet(void);
|
||||
ThreadError otPlatRandomSecureGet(uint16_t aInputLength, uint8_t *aOutput, uint16_t *aOutputLength);
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
||||
Reference in New Issue
Block a user