|
Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
|
Driver Operations Hardware Spinlock driver operations More...
#include <zephyr/drivers/hwspinlock.h>
Data Fields | |
| hwspinlock_api_trylock | trylock |
| OPT Try to lock HW spinlock. | |
| hwspinlock_api_lock | lock |
| REQ Lock HW spinlock. | |
| hwspinlock_api_unlock | unlock |
| REQ Unlock HW spinlock. | |
| hwspinlock_api_get_max_id | get_max_id |
| REQ Get HW spinlock max ID. | |
Driver Operations Hardware Spinlock driver operations
This is the driver API structure any Hardware Spinlock driver needs to define. It contains function pointers to the operations the driver implements, as well as any other driver-specific constant data.
Members marked with REQ MUST be set by the driver, whereas those marked with OPT are optional.
| hwspinlock_api_get_max_id hwspinlock_driver_api::get_max_id |
REQ Get HW spinlock max ID.
| hwspinlock_api_lock hwspinlock_driver_api::lock |
REQ Lock HW spinlock.
| hwspinlock_api_trylock hwspinlock_driver_api::trylock |
OPT Try to lock HW spinlock.
| hwspinlock_api_unlock hwspinlock_driver_api::unlock |
REQ Unlock HW spinlock.