Functions | |
uint8_t | query_serial (String cmd[]) |
uint8_t | string_to_int_array (String string_in, uint8_t array_out[]) |
void | shift_array_left (String array_in[], uint8_t array_in_size, String array_out[], uint8_t n_shift) |
Utilites for interface
|
inline |
Reads and parses a serial message until the until '\r' and stores the command to cmd[]. A ',' or ':' indicates a new element. For example, the message "DAC:SET,0,1.3\r", will be parsed as {"DAC", "SET", "0", "1.3"}.
[out] | cmd[] | The array to store the message. |
|
inline |
Shifts array to the left.
[in] | array_in[] | The array to be shifted. |
[in] | array_in_size | The size of array_in[]. |
[out] | array_out[] | Array to store shifted array. |
[in] | n_shift | The number of places to shift. |
|
inline |
Separates String characters into an array of unsigned intergers. The String characters must be numbers.
[in] | string_in | The String to be separate. |
[out] | array_out | The array to store the String characters. |