|
brazos-trapezoidal
|
Basic description of file contents. More...

Go to the source code of this file.
Macros | |
| #define | CHARTOLONG(x, y) (int16_t)((x << 8) + y) |
| #define | BYTES_PER_DATA 5 |
Functions | |
| void | sendlogdata (unsigned char motindex) |
| method to load and send data More... | |
| void | get_measurements (unsigned char mindex) |
| method to sort the data to be sent More... | |
| void | select_algotorun (uint8_t mindex, API023_ALGO_TYPE algo, uint8_t value) |
| method to sort the algorithm to run or stop More... | |
| void | API023MotorControl__Initialize (void) |
| It Initializes the module API023MotorControl and its variables. More... | |
| void | API023MotorControl__ReceiveParser (TSP_TYPE *message) |
| Method to handle the received messages for this API. More... | |
| void | API023MotorControl__Handler (void) |
| API0023 Handler. More... | |
| void | API023MotorControl__CmdAccepted (uint8_t accepted, API023_MOTORCONTROL_TYPE cmd_id) |
| Sends the command feedback. More... | |
Variables | |
| API023_DATALOG_TYPE | DataLogConfig [NUMBER_OF_MOTORS] |
Basic description of file contents.
Detailed description of the file contents
Definition in file API023MotorControl.c.
| #define BYTES_PER_DATA 5 |
Definition at line 20 of file API023MotorControl.c.
| #define CHARTOLONG | ( | x, | |
| y | |||
| ) | (int16_t)((x << 8) + y) |
Definition at line 19 of file API023MotorControl.c.
| void API023MotorControl__CmdAccepted | ( | uint8_t | accepted, |
| API023_MOTORCONTROL_TYPE | cmd_id | ||
| ) |
Sends the command feedback.
| uint8_t | accepted: if the received cmd was valid or not |
| API023_MOTORCONTROL_TYPE | cmd_id: command ID for reference |
Definition at line 210 of file API023MotorControl.c.
| void API023MotorControl__Handler | ( | void | ) |
| void API023MotorControl__Initialize | ( | void | ) |
It Initializes the module API023MotorControl and its variables.
Definition at line 41 of file API023MotorControl.c.
| void API023MotorControl__ReceiveParser | ( | TSP_TYPE * | message | ) |
Method to handle the received messages for this API.
| TSP_TYPE | * message |
Definition at line 59 of file API023MotorControl.c.
| void get_measurements | ( | unsigned char | mindex | ) |
method to sort the data to be sent
Definition at line 248 of file API023MotorControl.c.
| void select_algotorun | ( | uint8_t | mindex, |
| API023_ALGO_TYPE | algo, | ||
| uint8_t | value | ||
| ) |
method to sort the algorithm to run or stop
| uint8_t | mindex: motor index |
| API023_ALGO_TYPE | algo: Selected algorithm |
| uint8_t | value: 1/0 - Start/stop algorithm |
Definition at line 334 of file API023MotorControl.c.
| void sendlogdata | ( | unsigned char | motindex | ) |
method to load and send data
Definition at line 232 of file API023MotorControl.c.
| API023_DATALOG_TYPE DataLogConfig[NUMBER_OF_MOTORS] |
Definition at line 24 of file API023MotorControl.c.