ACCELEROMETER TASK cpp_freertos class.
More...
#include <accelerometer_task.h>
ACCELEROMETER TASK cpp_freertos class.
Definition at line 79 of file accelerometer_task.h.
◆ AccelerometerState_t
Enum for state switch of running method.
| Enumerator |
|---|
| ACCELEROMETER_STATE_CREATE | |
| ACCELEROMETER_STATE_INIT | |
| ACCELEROMETER_STATE_CHECK_HARDWARE | |
| ACCELEROMETER_STATE_LOAD_CONFIGURATION | |
| ACCELEROMETER_STATE_SETUP_MODULE | |
| ACCELEROMETER_STATE_CHECK_OPERATION | |
| ACCELEROMETER_STATE_WAIT_RESUME | |
| ACCELEROMETER_STATE_HARDWARE_FAIL | |
Definition at line 82 of file accelerometer_task.h.
◆ AccelerometerTask()
| AccelerometerTask::AccelerometerTask |
( |
const char * |
taskName, |
|
|
uint16_t |
stackSize, |
|
|
uint8_t |
priority, |
|
|
AccelerometerParam_t |
accelerometerParam |
|
) |
| |
Construct the Accelerometer Task::AccelerometerTask object.
- Parameters
-
| taskName | name of the task |
| stackSize | size of the stack |
| priority | priority of the task |
| accelerometerParam | parameters for the task |
Definition at line 41 of file accelerometer_task.cpp.
◆ calibrate()
| void AccelerometerTask::calibrate |
( |
bool |
is_default, |
|
|
bool |
save_register |
|
) |
| |
|
private |
Calibrate accelereometer position X-Y-Z to actual value (set offset from 0)
- Parameters
-
| is_default | require default value data |
| save_register | request to save calibration in register |
Definition at line 410 of file accelerometer_task.cpp.
◆ checkModule()
| bool AccelerometerTask::checkModule |
( |
void |
| ) |
|
|
private |
◆ loadConfiguration()
| void AccelerometerTask::loadConfiguration |
( |
void |
| ) |
|
|
private |
Load configuration accelleration module.
read configuration from register
Definition at line 285 of file accelerometer_task.cpp.
◆ powerDownModule()
| void AccelerometerTask::powerDownModule |
( |
void |
| ) |
|
|
private |
◆ printConfiguration()
| void AccelerometerTask::printConfiguration |
( |
void |
| ) |
|
|
private |
◆ readModule()
| bool AccelerometerTask::readModule |
( |
void |
| ) |
|
|
private |
Read data from module accelerometer.
- Returns
- true if data is ready from module
Definition at line 479 of file accelerometer_task.cpp.
◆ Run()
| void AccelerometerTask::Run |
( |
| ) |
|
|
protectedvirtual |
◆ saveConfiguration()
| void AccelerometerTask::saveConfiguration |
( |
bool |
is_default | ) |
|
|
private |
◆ setupModule()
| void AccelerometerTask::setupModule |
( |
void |
| ) |
|
|
private |
◆ TaskState()
| void AccelerometerTask::TaskState |
( |
uint8_t |
state_position, |
|
|
uint8_t |
state_subposition, |
|
|
task_flag |
state_operation |
|
) |
| |
|
private |
local suspend flag and positor running state Task (optional)
- Parameters
-
| state_position | Sw_Position (Local STATE) |
| state_subposition | Sw_SubPosition (Optional Local SUB_STATE Position Monitor) |
| state_operation | operative mode flag status for this task |
Definition at line 97 of file accelerometer_task.cpp.
◆ TaskWatchDog()
| void AccelerometerTask::TaskWatchDog |
( |
uint32_t |
millis_standby | ) |
|
|
private |
local watchDog and Sleep flag Task (optional)
- Parameters
-
| millis_standby | time in ms to perfor check of WDT. If longer than WDT Reset, WDT is temporanly suspend |
Definition at line 72 of file accelerometer_task.cpp.
◆ accelerometer
◆ accelerometer_configuration
◆ param
◆ rtc
| STM32RTC& AccelerometerTask::rtc = STM32RTC::getInstance() |
|
private |
◆ state
◆ value_x
| float AccelerometerTask::value_x |
|
private |
◆ value_y
| float AccelerometerTask::value_y |
|
private |
◆ value_z
| float AccelerometerTask::value_z |
|
private |
The documentation for this class was generated from the following files: