Android Hardware Abstraction Layer
Macros | Enumerations | Functions
userial.h File Reference

Go to the source code of this file.

Macros

#define USERIAL_PORT_1   0
 
#define USERIAL_PORT_2   1
 
#define USERIAL_PORT_3   2
 
#define USERIAL_PORT_4   3
 
#define USERIAL_PORT_5   4
 
#define USERIAL_PORT_6   5
 
#define USERIAL_PORT_7   6
 
#define USERIAL_PORT_8   7
 
#define USERIAL_PORT_9   8
 
#define USERIAL_PORT_10   9
 
#define USERIAL_PORT_11   10
 
#define USERIAL_PORT_12   11
 
#define USERIAL_PORT_13   12
 
#define USERIAL_PORT_14   13
 
#define USERIAL_PORT_15   14
 
#define USERIAL_PORT_16   15
 
#define USERIAL_PORT_17   16
 
#define USERIAL_PORT_18   17
 

Enumerations

enum  userial_ioctl_op_t { USERIAL_OP_INIT, USERIAL_OP_RXFLOW_ON, USERIAL_OP_RXFLOW_OFF }
 

Functions

uint8_t userial_init (void)
 
uint8_t userial_open (uint8_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, uint8_t *p_data, uint16_t len)
 
void userial_close (void)
 
void userial_ioctl (userial_ioctl_op_t op, void *p_data)
 

Macro Definition Documentation

#define USERIAL_PORT_1   0

Definition at line 35 of file userial.h.

#define USERIAL_PORT_10   9

Definition at line 44 of file userial.h.

#define USERIAL_PORT_11   10

Definition at line 45 of file userial.h.

#define USERIAL_PORT_12   11

Definition at line 46 of file userial.h.

#define USERIAL_PORT_13   12

Definition at line 47 of file userial.h.

#define USERIAL_PORT_14   13

Definition at line 48 of file userial.h.

#define USERIAL_PORT_15   14

Definition at line 49 of file userial.h.

#define USERIAL_PORT_16   15

Definition at line 50 of file userial.h.

#define USERIAL_PORT_17   16

Definition at line 51 of file userial.h.

#define USERIAL_PORT_18   17

Definition at line 52 of file userial.h.

#define USERIAL_PORT_2   1

Definition at line 36 of file userial.h.

#define USERIAL_PORT_3   2

Definition at line 37 of file userial.h.

#define USERIAL_PORT_4   3

Definition at line 38 of file userial.h.

#define USERIAL_PORT_5   4

Definition at line 39 of file userial.h.

#define USERIAL_PORT_6   5

Definition at line 40 of file userial.h.

#define USERIAL_PORT_7   6

Definition at line 41 of file userial.h.

#define USERIAL_PORT_8   7

Definition at line 42 of file userial.h.

#define USERIAL_PORT_9   8

Definition at line 43 of file userial.h.

Enumeration Type Documentation

Enumerator
USERIAL_OP_INIT 
USERIAL_OP_RXFLOW_ON 
USERIAL_OP_RXFLOW_OFF 

Definition at line 54 of file userial.h.

Function Documentation

void userial_close ( void  )
uint8_t userial_init ( void  )
void userial_ioctl ( userial_ioctl_op_t  op,
void *  p_data 
)
uint8_t userial_open ( uint8_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,
uint8_t *  p_data,
uint16_t  len 
)