Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mDot_LoRa_Sensornode_Flowmeter_impl mbed-rtos mbed
TaskGyroscope Class Reference
This TaskGyroscope Class handles all the acquired data from other Tasks that measure data using the different sensors of Sensbert. More...
#include <TaskDatahandler.h>
Inherits Task.
Public Member Functions | |
| osStatus | start () |
| Starts the task by building and its measurement. | |
| osStatus | stop () |
| Stops the task. | |
| TASK_STATE | getState () |
| Gets the actual state of the Task either RUNNING or SLEEPING. | |
Protected Member Functions | |
| void | attachIdleHook (void(*fptr)(void)) |
| Attaches the idle_hook for this task. | |
| void | setMutex (Mutex *mutexI2C) |
| Sets the mutex thats used for a thread safe measurement. | |
| void | setPriority (osPriority priority) |
| Sets the priority of the Task. | |
| void | setStackSize (uint32_t stackSize) |
| Sets the size of the Task. | |
| void | setStackPointer (unsigned char *stackPointer) |
| Sets the stack pointer of for the task stack. | |
| void | setState (TASK_STATE taskState) |
| Sets the actual state of the Task. | |
Static Protected Member Functions | |
| static void | callBack (void const *) |
| A Callback function thats called by the mbed::Thread of this TaskClass. | |
Detailed Description
This TaskGyroscope Class handles all the acquired data from other Tasks that measure data using the different sensors of Sensbert.
This TaskGyroscope Class handles the gyroscope measurement using the MPU9250.
Starting the task using the start() starts the handling of the Data. The Task looks for queues that contains data and forwards the data from the queues via LoRa. The Task Class basically wraps mbeds Thread functionality.
Starting the task using the start() starts the measurement of all axis. It can be used alongside with other measurement Tasks inside the mbed::rtos environment. The Task Class basically wraps mbeds Thread functionality.
Definition at line 24 of file TaskGyroscope.h.
Member Function Documentation
| void attachIdleHook | ( | void(*)(void) | fptr ) | [protected, inherited] |
| void callBack | ( | void const * | data ) | [static, protected, inherited] |
| TASK_STATE getState | ( | ) | [inherited] |
| void setMutex | ( | Mutex * | mutexI2C ) | [protected, inherited] |
| void setPriority | ( | osPriority | priority ) | [protected, inherited] |
| void setStackPointer | ( | unsigned char * | stackPointer ) | [protected, inherited] |
| void setStackSize | ( | uint32_t | stackSize ) | [protected, inherited] |
| void setState | ( | TASK_STATE | taskState ) | [protected, inherited] |
| osStatus start | ( | ) | [inherited] |
Generated on Tue Jul 12 2022 21:35:27 by
1.7.2