UartBus source documentation
uartbus Struct Reference

Public Attributes

int16_t(* do_receive_byte )(struct uartbus *bus)
 
void(* serial_byte_received )(struct uartbus *bus, uint8_t data_byte)
 
void(* serial_event )(struct uartbus *bus, enum uartbus_event event)
 
uint8_t(* do_send_byte )(struct uartbus *bus, uint8_t)
 
uint32_t(* current_usec )(struct uartbus *bus)
 
uint8_t(* rand )(struct uartbus *bus)
 
void * user_data
 
uint8_t * to_send
 
volatile uint16_t to_send_size
 
enum uartbus_status status
 
uint16_t byte_time_us
 
uint8_t packet_timeout
 
uint8_t cfg
 
uint32_t last_bus_activity
 
volatile int16_t wi
 

Detailed Description

Definition at line 49 of file direct.c.

Member Data Documentation

◆ do_receive_byte

int16_t(* uartbus::do_receive_byte) (struct uartbus *bus)

receive one byte (0-255) on error: any negative value or higher than 255

Definition at line 83 of file ub.h.

◆ serial_byte_received

void(* uartbus::serial_byte_received) (struct uartbus *bus, uint8_t data_byte)

function called when a byte received from serial line.

Definition at line 90 of file ub.h.


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