ASCII Serial Com
Serial communication library between computers, microcontrollers, FPGAs, etc. Uses only ASCII. Not the most efficient protocol, but meant to be easy to read
|
ASCII Serial Com Device Config Struct. More...
#include <ascii_serial_com_device.h>
Public Attributes | |
void(* | func_rw )(ascii_serial_com *, char, char, char, char *data, size_t, void *) |
void(* | func_s )(ascii_serial_com *, char, char, char, char *data, size_t, void *) |
void(* | func_nf )(ascii_serial_com *, char, char, char, char *data, size_t, void *) |
void * | state_rw |
void * | state_s |
void * | state_nf |
ASCII Serial Com Device Config Struct.
Use at initialization to configure a device
Passed to ascii_serial_com_device_init
Define like:
ascii_serial_com_device_config dev_config = {.func_rw = myfunrw, .state_rw = myrwstate};
All other members set to 0 (so null pointers).
Definition at line 25 of file ascii_serial_com_device.h.
void(* __ascii_serial_com_device_config::func_nf) (ascii_serial_com *, char, char, char, char *data, size_t, void *) |
called for n and f messages
Definition at line 30 of file ascii_serial_com_device.h.
Referenced by ascii_serial_com_device_receive().
void(* __ascii_serial_com_device_config::func_rw) (ascii_serial_com *, char, char, char, char *data, size_t, void *) |
called for r or w messages
Definition at line 26 of file ascii_serial_com_device.h.
Referenced by ascii_serial_com_device_receive().
void(* __ascii_serial_com_device_config::func_s) (ascii_serial_com *, char, char, char, char *data, size_t, void *) |
called for s messages
Definition at line 28 of file ascii_serial_com_device.h.
Referenced by ascii_serial_com_device_receive().
void* __ascii_serial_com_device_config::state_nf |
Definition at line 34 of file ascii_serial_com_device.h.
void* __ascii_serial_com_device_config::state_rw |
Definition at line 32 of file ascii_serial_com_device.h.
void* __ascii_serial_com_device_config::state_s |
Definition at line 33 of file ascii_serial_com_device.h.