OLE Developer Guide  Latest Git
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Transport

Detailed Description

The Host <-> Device communication transport.

This contains the types used to transfer messages between the Host (typically a machine running a full OS) and the PIC device.

Files

file  iovec.h
 Vector I/O.
 
file  transport.h
 The Host <-> Device communication transport.
 

Data Structures

struct  IOVec
 An IOVector, with a pointer to memory and a length attribute. More...
 

Typedefs

typedef bool(* TransportTXFunction )(uint8_t, Command, uint8_t, const IOVec *, unsigned int)
 A function pointer to send a message to the host. More...
 
typedef void(* TransportRxFunction )(const uint8_t *, unsigned int)
 A function pointer to call when data is received from the host. More...
 

Enumerations

enum  TransportFlags { TRANSPORT_FLAGS_CHANGED = 0x02, TRANSPORT_MSG_TRUNCATED = 0x04 }
 Flags use in a response message. More...
 

Typedef Documentation

typedef void(* TransportRxFunction)(const uint8_t *, unsigned int)

A function pointer to call when data is received from the host.

Parameters
dataA pointer to the new data.
sizeThe size of the data received.
typedef bool(* TransportTXFunction)(uint8_t, Command, uint8_t, const IOVec *, unsigned int)

A function pointer to send a message to the host.

Parameters
tokenThe frame token, this should match the request.
commandthe Command identifier to send
rcThe 8-bit return code.
iovA pointer to an array of IOVec structures. The data will be copied.
iov_countThe number of IOVec structures in the array.

Enumeration Type Documentation

Flags use in a response message.

Enumerator
TRANSPORT_FLAGS_CHANGED 

Flags have changed.

TRANSPORT_MSG_TRUNCATED 

The message has been truncated.