hollyhock
Loading...
Searching...
No Matches
comm.h File Reference

Status codes shared by the Comm, Serial and USB SDK interfaces. More...

#include <stdint.h>
Include dependency graph for comm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  Comm_Status {
  COMM_OK = 0x00 , COMM_NO_DATA = 0x01 , COMM_BUSY = 0x02 , COMM_NOT_READY = 0x03 ,
  COMM_ALREADY_OPEN = 0x04 , COMM_NOT_OPEN = 0x05 , COMM_EVENT = 0x06 , COMM_READY = 0x08 ,
  COMM_ERROR = 0x09 , COMM_CANCELLED = 0x0a , COMM_NOT_INITIALISED = 0x0b , COMM_INVALID_ARG = 0x12 ,
  COMM_WOULD_BLOCK = 0x18
}
 Status returned by the Comm, Serial and USB SDK entry points. More...

Detailed Description

Status codes shared by the Comm, Serial and USB SDK interfaces.

Enumeration Type Documentation

◆ Comm_Status

Status returned by the Comm, Serial and USB SDK entry points.

The OS returns this value as a 16-bit code in r0. All values below fit in 16 bits; the names are shared across all three transports.

Enumerator
COMM_OK 

operation succeeded

COMM_NO_DATA 

no data yet / retry (IsOpen: open)

COMM_BUSY 

TX buffer full / no space / bad length

COMM_NOT_READY 

not configured; Serial_Open: bad config

COMM_ALREADY_OPEN 

port already open

COMM_NOT_OPEN 

session not open; open/close failed

COMM_EVENT 

event mask in the out-param

COMM_READY 

caller form of COMM_EVENT; IsOpen: configured

COMM_ERROR 

unknown / unmapped backend status

COMM_CANCELLED 

user abort / timeout

COMM_NOT_INITIALISED 

USB API / transport not open

COMM_INVALID_ARG 

invalid serial mode bits

COMM_WOULD_BLOCK 

no data available