uTrack
|
Helper class for utIMU.c poll commands. More...
#include "uTrack.h"
#include "utIMUCommandPool.h"
Functions | |
int | utIMUCommandPool_GetIndexFromCommand (UT_IMU_PollCmd cmd) |
UT_IMU_PollCmd | utIMUCommandPool_GetCommandFromString (const char *name) |
const char * | utIMUCommandPool_GetStringFromCommand (UT_IMU_PollCmd cmd) |
bool | utIMUCommandPool_IsEnabled (UT_IMU_PollCmd command) |
bool | utIMUCommandPool_GetLogStatus (UT_IMU_PollCmd command) |
bool | utIMUCommandPool_GetLiveStatus (UT_IMU_PollCmd command) |
bool | utIMUCommandPool_GetLogStatusById (u8 id) |
bool | utIMUCommandPool_GetLiveStatusById (u8 id) |
u8 | utIMUCommandPool_GetLogDivider (UT_IMU_PollCmd command) |
u8 | utIMUCommandPool_GetLiveDivider (UT_IMU_PollCmd command) |
void | utIMUCommandPool_EnableMessage (UT_IMU_PollCmd command, int logDivider, bool log, int liveDivider, bool live, UT_IMU_CmdFieldDetails flags) |
void | utIMUCommandPool_DisableMessage (UT_IMU_PollCmd command) |
Variables | |
UT_IMU_CmdFieldDetails | fieldDetailsList [UT_IMU_POLL_MAX] |
volatile UT_IMU_PollCmdDetails ** | activeList = enabledList |
Externally available access to the list of enabled poll messages. | |
const u8 * | activeListLength = &enabledCount |
Externally available access to the length of the enabled list (without a method call - IRQ usage). | |
Helper class for utIMU.c poll commands.
void utIMUCommandPool_DisableMessage | ( | UT_IMU_PollCmd | command | ) |
g1 Disables a given command for polling.
command | The command to disable. |
void utIMUCommandPool_EnableMessage | ( | UT_IMU_PollCmd | command, |
int | logDivider, | ||
bool | log, | ||
int | liveDivider, | ||
bool | live, | ||
UT_IMU_CmdFieldDetails | flags | ||
) |
Enables and configures a given command for polling.
command | The command to enable. |
divider | The message rate divider, to allow for slow poll rates. Must be an integer in [1,128] or it will be ignored. The initial value is 1. |
log | Whether to log the command results. |
UT_IMU_PollCmd utIMUCommandPool_GetCommandFromString | ( | const char * | name | ) |
Gets the appropriate IMU poll command type given a name.
name | The null terminated string containing the name of a valid supported IMU message. |
u8 utIMUCommandPool_GetLiveDivider | ( | UT_IMU_PollCmd | command | ) |
Returns the Live poll rate divider for a given command.
command | The command to check. |
bool utIMUCommandPool_GetLiveStatus | ( | UT_IMU_PollCmd | command | ) |
Tests to see if a poll command is configured to send live responses.
command | The command to check. |
bool utIMUCommandPool_GetLiveStatusById | ( | u8 | id | ) |
Tests to see if a poll command is configured for live responses, using the command id byte value.
id | The command id to check. |
u8 utIMUCommandPool_GetLogDivider | ( | UT_IMU_PollCmd | command | ) |
Returns the Log poll rate divider for a given command.
command | The command to check. |
bool utIMUCommandPool_GetLogStatus | ( | UT_IMU_PollCmd | command | ) |
Tests to see if a poll command is configured to log responses.
command | The command to check. |
bool utIMUCommandPool_GetLogStatusById | ( | u8 | id | ) |
Tests to see if a poll command is configured to log responses, using the command id byte value.
id | The command id to check. |
const char * utIMUCommandPool_GetStringFromCommand | ( | UT_IMU_PollCmd | cmd | ) |
Gets the appropriate IMU poll command type given a name.
name | The null terminated string containing the name of a valid supported IMU message. |
bool utIMUCommandPool_IsEnabled | ( | UT_IMU_PollCmd | command | ) |
Tests to see if a command is in the enabled poll list.
command | The command to check. |
UT_IMU_CmdFieldDetails fieldDetailsList[UT_IMU_POLL_MAX] |