OPTIGA Trust M  1.1.0
C++ library for Optiga Trust M Chip Security Controller
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 
90 void pal_os_lock_destroy(pal_os_lock_t * p_lock);
91 
109 
126 void pal_os_lock_release(pal_os_lock_t * p_lock);
127 
142 
157 
158 #ifdef __cplusplus
159 }
160 #endif
161 
162 #endif /*_PAL_OS_LOCK_H_ */
163 
uint8_t lock
Definition: pal_os_lock.h:51
struct pal_os_lock pal_os_lock_t
PAL OS lock structure .
This file provides the prototype declarations of platform abstraction layer.
PAL OS lock structure .
Definition: pal_os_lock.h:49
pal_status_t pal_os_lock_acquire(pal_os_lock_t *p_lock)
Acquires a lock.
Definition: pal_os_lock_arduino.cpp:50
void pal_os_lock_destroy(pal_os_lock_t *p_lock)
Deinitializes the lock.
Definition: pal_os_lock_arduino.cpp:45
void pal_os_lock_enter_critical_section(void)
To enter critical section.
Definition: pal_os_lock_arduino.cpp:60
void pal_os_lock_release(pal_os_lock_t *p_lock)
Releases the lock.
Definition: pal_os_lock_arduino.cpp:55
void pal_os_lock_create(pal_os_lock_t *p_lock, uint8_t lock_type)
Creates a lock.
Definition: pal_os_lock_arduino.cpp:40
void pal_os_lock_exit_critical_section(void)
To exit critical section.
Definition: pal_os_lock_arduino.cpp:64
uint8_t type
Definition: pal_os_lock.h:52
uint16_t pal_status_t
PAL return status.
Definition: pal.h:60