This is the Accelerator Subsystem.
◆ accel_deinit()
int32_t accel_deinit |
( |
struct accel * |
accel | ) |
|
Deinit Accelerator
- Parameters
-
accel | Accelerator Instance |
- Returns
- -1 on error 0 on ok
◆ accel_get()
int32_t accel_get |
( |
struct accel * |
accel, |
|
|
struct vector * |
vector, |
|
|
TickType_t |
waittime |
|
) |
| |
Get Accelerator Value
- Parameters
-
accel | Accelerator Instance |
vector | Values |
waittime | max waittime in mutex or isr lock see xSemaphoreTake() |
- Returns
- -1 on error 0 on ok
◆ accel_getISR()
int32_t accel_getISR |
( |
struct accel * |
accel, |
|
|
struct vector * |
vector |
|
) |
| |
Get Accelerator Value in Interrupt Service Routine
- Parameters
-
accel | Accelerator Instance |
vector | Values |
- Returns
- -1 on error 0 on ok
◆ accel_init()
struct accel* accel_init |
( |
uint32_t |
index | ) |
|
Init Accelerator
- Parameters
-
index | Index of Accelerator |
- Returns
- Accelerator Instance or NULL on error