userial.h File Reference
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Enumerations

enum  userial_port_t {
  USERIAL_PORT_1, USERIAL_PORT_2, USERIAL_PORT_3, USERIAL_PORT_4,
  USERIAL_PORT_5, USERIAL_PORT_6, USERIAL_PORT_7, USERIAL_PORT_8,
  USERIAL_PORT_9, USERIAL_PORT_10, USERIAL_PORT_11, USERIAL_PORT_12,
  USERIAL_PORT_13, USERIAL_PORT_14, USERIAL_PORT_15, USERIAL_PORT_16,
  USERIAL_PORT_17, USERIAL_PORT_18
}
 

Functions

bool userial_init (void)
 
bool userial_open (userial_port_t port)
 
void userial_close (void)
 
void userial_close_reader (void)
 
uint16_t userial_read (uint16_t msg_id, uint8_t *p_buffer, uint16_t len)
 
uint16_t userial_write (uint16_t msg_id, const uint8_t *p_data, uint16_t len)
 

Enumeration Type Documentation

Enumerator
USERIAL_PORT_1 
USERIAL_PORT_2 
USERIAL_PORT_3 
USERIAL_PORT_4 
USERIAL_PORT_5 
USERIAL_PORT_6 
USERIAL_PORT_7 
USERIAL_PORT_8 
USERIAL_PORT_9 
USERIAL_PORT_10 
USERIAL_PORT_11 
USERIAL_PORT_12 
USERIAL_PORT_13 
USERIAL_PORT_14 
USERIAL_PORT_15 
USERIAL_PORT_16 
USERIAL_PORT_17 
USERIAL_PORT_18 

Definition at line 27 of file userial.h.

Function Documentation

void userial_close ( void  )
void userial_close_reader ( void  )
bool userial_init ( void  )
bool userial_open ( userial_port_t  port)
uint16_t userial_read ( uint16_t  msg_id,
uint8_t *  p_buffer,
uint16_t  len 
)
uint16_t userial_write ( uint16_t  msg_id,
const uint8_t *  p_data,
uint16_t  len 
)