TI-OpenThread  1.08.06.06
Functions
LP_CC2652R7/thread/temp_sensor/otsupport/otrtosapi.h File Reference

Detailed Description

This file contains the definitions of the stack protective mutex.

#include <stdint.h>
+ Include dependency graph for LP_CC2652R7/thread/temp_sensor/otsupport/otrtosapi.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void OtRtosApi_init (void)
 
void OtRtosApi_lock (void)
 
void OtRtosApi_unlock (void)
 

Function Documentation

§ OtRtosApi_init()

void OtRtosApi_init ( void  )

Initialize the RTOS mutex protecting the OpenThread APIs.

This function must be called before OtRtosApi_lock and OtRtosApi_unlock.

Initialize the RTOS mutex protecting the OpenThread APIs.

Documented in ot_rtos_api.h.

§ OtRtosApi_lock()

void OtRtosApi_lock ( void  )

Lock the OpenThread Stack mutex.

This function must be called before interacting with the OpenThread APIs. This function will lock the mutex protecting the OpenThread Stack, and assure single threaded access to the Stack code.

The time between OtRtosApi_lock and OtRtosApi_unlock should be kept to a minimum to avoid starving the stack of processing time.

See also
OtRtosApi_unlock

Lock the OpenThread Stack mutex.

Documented in ot_rtos_api.h.

§ OtRtosApi_unlock()

void OtRtosApi_unlock ( void  )

Unlock the openthread stack mutex.

This function must be called after interacting with the OpenThread APIs. This function will restore the mutex protecting the OpenThread Stack to the state it was before OtRtosApi_lock was called.

The time between OtRtosApi_lock and OtRtosApi_unlock should be kept to a minimum to avoid starving the stack of processing time.

See also
OtRtosApi_lock

Unlock the OpenThread Stack mutex.

Documented in ot_rtos_api.h.

© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale