![]() |
BLDC control on ATAVRMC303 with ATxMega128A1
|
#include "DB101_IF.h"
Go to the source code of this file.
Functions | |
| void | BCD_Convert (U8 *data_ptr, U32 number, U8 size) |
| void | SendCommand (U8 *data_ptr, U8 length) |
| void | UpdateScreen (void) |
| void BCD_Convert | ( | U8 * | data_ptr, |
| U32 | number, | ||
| U8 | size | ||
| ) |
Function to convert a hexadecimal number to a string.
| data | Pointer to a string to put the digits in, |
| number | A number to convert. |
| size | Max size of the string of numbers. |
Definition at line 62 of file DB101_IF.c.
Referenced by UpdateScreen().
| void SendCommand | ( | U8 * | data_ptr, |
| U8 | length | ||
| ) |
Send a string over USART. Polled version.
| data | Data to send. |
| length | Length of string to send. |
Definition at line 13 of file DB101_IF.c.
Referenced by UpdateScreen().
| void UpdateScreen | ( | void | ) |
Definition at line 22 of file DB101_IF.c.
References BCD_Convert(), clearScreen, cursorEnd, cursorHome, CW, mc_get_potentiometer_value(), mci_direction, mci_get_measured_speed(), mci_run_stop, and SendCommand().
Referenced by main().
