OPTIGA™ Trust M
Host Library Documentation
|
This file provides the prototype declarations of PAL OS event. More...
#include "optiga/common/optiga_lib_types.h"
Go to the source code of this file.
Data Structures | |
struct | pal_os_event |
PAL os event structure. More... | |
typedef void(* | register_callback) (void *) |
typedef for Callback function when timer elapses. More... | |
typedef struct pal_os_event | pal_os_event_t |
PAL os event structure. More... | |
LIBRARY_EXPORTS pal_os_event_t * | pal_os_event_create (register_callback callback, void *callback_args) |
Create an os event. More... | |
LIBRARY_EXPORTS void | pal_os_event_destroy (pal_os_event_t *pal_os_event) |
Destroys an os event. More... | |
LIBRARY_EXPORTS void | pal_os_event_register_callback_oneshot (pal_os_event_t *p_pal_os_event, register_callback callback, void *callback_args, uint32_t time_us) |
Callback registration function to trigger once when timer expires. More... | |
void | pal_os_event_trigger_registered_callback (void) |
Timer callback handler. More... | |
LIBRARY_EXPORTS void | pal_os_event_start (pal_os_event_t *p_pal_os_event, register_callback callback, void *callback_args) |
Start an os event. More... | |
LIBRARY_EXPORTS void | pal_os_event_stop (pal_os_event_t *p_pal_os_event) |
Stops an os event. More... | |
This file provides the prototype declarations of PAL OS event.
Definition in file pal_os_event.h.
typedef struct pal_os_event pal_os_event_t |
PAL os event structure.
typedef void( * register_callback) (void *) |
typedef for Callback function when timer elapses.
Definition at line 50 of file pal_os_event.h.
LIBRARY_EXPORTS pal_os_event_t* pal_os_event_create | ( | register_callback | callback, |
void * | callback_args | ||
) |
Create an os event.
Starts an OS event.
[in] | callback | Callback function to be registered internally |
[in] | callback_args | Arguement to be passed to registered callback |
LIBRARY_EXPORTS void pal_os_event_destroy | ( | pal_os_event_t * | pal_os_event | ) |
Destroys an os event.
Starts an OS event.
[in] | pal_os_event | pal_os_event to be destroyed |
LIBRARY_EXPORTS void pal_os_event_register_callback_oneshot | ( | pal_os_event_t * | p_pal_os_event, |
register_callback | callback, | ||
void * | callback_args, | ||
uint32_t | time_us | ||
) |
Callback registration function to trigger once when timer expires.
Platform specific event call back registration function to trigger once when timer expires.
[in] | p_pal_os_event | Pointer to pal_os_event |
[in] | callback | Callback function pointer |
[in] | callback_args | Callback arguments |
[in] | time_us | time in micro seconds to trigger the call back |
LIBRARY_EXPORTS void pal_os_event_start | ( | pal_os_event_t * | p_pal_os_event, |
register_callback | callback, | ||
void * | callback_args | ||
) |
Start an os event.
Starts an OS event.
[in] | p_pal_os_event | Pointer to os event |
[in] | callback | Callback function to be registered internally |
[in] | callback_args | Arguement to be passed to registered callback |
LIBRARY_EXPORTS void pal_os_event_stop | ( | pal_os_event_t * | p_pal_os_event | ) |
Stops an os event.
Stops an OS event.
[in] | p_pal_os_event | Pointer to os event |
void pal_os_event_trigger_registered_callback | ( | void | ) |
Timer callback handler.
Timer callback handler.