49 #define IOT_TIMER_SUCCESS ( 0 ) 50 #define IOT_TIMER_INVALID_VALUE ( 1 ) 51 #define IOT_TIMER_FUNCTION_NOT_SUPPORTED ( 2 ) 52 #define IOT_TIMER_NOT_RUNNING ( 3 ) 53 #define IOT_TIMER_SET_FAILED ( 4 ) 58 struct IotTimerDescriptor; 108 void * pvUserContext );
152 uint64_t * ullMicroSeconds );
203 uint32_t ulDelayMicroSeconds );
int32_t iot_timer_close(IotTimerHandle_t const pxTimerHandle)
iot_timer_close is used to de-initializes the timer, stops the timer if it was started and cancels th...
int32_t iot_timer_stop(IotTimerHandle_t const pxTimerHandle)
iot_timer_stop is used to stop the timer counter if the timer is running.
void(* IotTimerCallback_t)(void *pvUserContext)
timer callback notification type. This callback is used for notifying the caller when the setup timer...
Definition: iot_timer.h:73
void iot_timer_set_callback(IotTimerHandle_t const pxTimerHandle, IotTimerCallback_t xCallback, void *pvUserContext)
iot_timer_set_callback is used to set the callback to be called when the timer reaches the count (del...
int32_t iot_timer_get_value(IotTimerHandle_t const pxTimerHandle, uint64_t *ullMicroSeconds)
iot_timer_get_value is used to get the current timer value in micro seconds.
int32_t iot_timer_cancel(IotTimerHandle_t const pxTimerHandle)
iot_timer_cancel is used to cancel any existing delay call. If a call to iot_timer_delay() was made e...
IotTimerHandle_t iot_timer_open(int32_t lTimerInstance)
iot_timer_open is used to initialize the timer. This function will start the timer.
int32_t iot_timer_delay(IotTimerHandle_t const pxTimerHandle, uint32_t ulDelayMicroSeconds)
iot_timer_delay is used to set up a delay/wake-up time in microseconds. The caller can use this API t...
int32_t iot_timer_start(IotTimerHandle_t const pxTimerHandle)
iot_timer_start is used to start the timer counter. This call only makes the timer counter running...
struct IotTimerDescriptor * IotTimerHandle_t
IotTimerHandle_t type is the timer handle returned by calling iot_timer_open() this is initialized in...
Definition: iot_timer.h:65