OPTIGA™ Trust M
Host Library Documentation
pal_os_lock.h
Go to the documentation of this file.
1 
38 #ifndef _PAL_OS_LOCK_H_
39 #define _PAL_OS_LOCK_H_
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 #include "pal.h"
49 typedef struct pal_os_lock
50 {
51  uint8_t lock;
52  uint8_t type;
54 
72 void pal_os_lock_create(pal_os_lock_t * p_lock, uint8_t lock_type);
73 
91 
109 
127 
142 
157 
158 #ifdef __cplusplus
159 }
160 #endif
161 
162 #endif /*_PAL_OS_LOCK_H_ */
163 
pal_status_t
uint16_t pal_status_t
PAL return status.
Definition: examples/tools/protected_update_data_set/include/pal/pal_crypt.h:54
pal_os_lock::type
uint8_t type
Definition: pal_os_lock.h:52
pal_os_lock_enter_critical_section
void pal_os_lock_enter_critical_section(void)
To enter critical section.
pal_os_lock_acquire
pal_status_t pal_os_lock_acquire(pal_os_lock_t *p_lock)
Acquires a lock.
pal_os_lock_destroy
void pal_os_lock_destroy(pal_os_lock_t *p_lock)
Deinitializes the lock.
pal_os_lock::lock
uint8_t lock
Definition: pal_os_lock.h:51
pal_os_lock_release
void pal_os_lock_release(pal_os_lock_t *p_lock)
Releases the lock.
pal_os_lock_create
void pal_os_lock_create(pal_os_lock_t *p_lock, uint8_t lock_type)
Creates a lock.
pal_os_lock_exit_critical_section
void pal_os_lock_exit_critical_section(void)
To exit critical section.
pal_os_lock_t
struct pal_os_lock pal_os_lock_t
PAL OS lock structure .
pal.h
This file provides the prototype declarations of platform abstraction layer.
pal_os_lock
PAL OS lock structure .
Definition: pal_os_lock.h:50