Go to the source code of this file.
void commands_init |
( |
void |
| ) |
|
void commands_printf |
( |
char * |
format, |
|
|
|
... |
|
) |
| |
void commands_process_packet |
( |
unsigned char * |
data, |
|
|
unsigned int |
len |
|
) |
| |
Process a received buffer with commands and data.
- Parameters
-
data | The buffer to process. |
len | The length of the buffer. |
void commands_send_experiment_samples |
( |
float * |
samples, |
|
|
int |
len |
|
) |
| |
void commands_send_packet |
( |
unsigned char * |
data, |
|
|
unsigned int |
len |
|
) |
| |
Send a packet using the set send function.
- Parameters
-
data | The packet data. |
len | The data length. |
void commands_send_rotor_pos |
( |
float |
rotor_pos | ) |
|
void commands_send_samples |
( |
uint8_t * |
data, |
|
|
int |
len |
|
) |
| |
void commands_set_send_func |
( |
void(*)(unsigned char *data, unsigned int len) |
func | ) |
|
Provide a function to use the next time there are packets to be sent.
- Parameters
-
func | A pointer to the packet sending function. |