This is the Gyroscope Subsystem.
◆ gyro_deinit()
int32_t gyro_deinit |
( |
struct gyro * |
gyro | ) |
|
Deinit Gyroscope
- Parameters
-
- Returns
- -1 on error 0 on ok
◆ gyro_get()
int32_t gyro_get |
( |
struct gyro * |
gyro, |
|
|
struct vector * |
vector, |
|
|
TickType_t |
waittime |
|
) |
| |
Get Gyroscope Value
- Parameters
-
gyro | Gyroscope Instance |
vector | Values |
waittime | max waittime in mutex or isr lock see xSemaphoreTake() |
- Returns
- -1 on error 0 on ok
◆ gyro_getISR()
int32_t gyro_getISR |
( |
struct gyro * |
gyro, |
|
|
struct vector * |
vector |
|
) |
| |
Get Gyroscope Value in Interrupt Service Routine
- Parameters
-
gyro | Gyroscope Instance |
vector | Values |
- Returns
- -1 on error 0 on ok
◆ gyro_init()
struct gyro* gyro_init |
( |
uint32_t |
index | ) |
|
Init Gyroscope
- Parameters
-
- Returns
- Gyroscope Instance or NULL on error