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
Loading...
Searching...
No Matches
Public Attributes | List of all members
__ascii_serial_com_device_config Struct Reference

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
 

Detailed Description

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.

Member Data Documentation

◆ func_nf

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().

◆ func_rw

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().

◆ func_s

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().

◆ state_nf

void* __ascii_serial_com_device_config::state_nf

Definition at line 34 of file ascii_serial_com_device.h.

◆ state_rw

void* __ascii_serial_com_device_config::state_rw

Definition at line 32 of file ascii_serial_com_device.h.

◆ state_s

void* __ascii_serial_com_device_config::state_s

Definition at line 33 of file ascii_serial_com_device.h.


The documentation for this struct was generated from the following file: