modm API documentation
modm::Ft245< PORT, RD, WR, RXF, TXE > Class Template Reference

Static Public Member Functions

static bool write (uint8_t data)
 
static void write (const uint8_t *buffer, uint8_t nbyte)
 
static void flushWriteBuffer ()
 
static bool read (uint8_t &c)
 
static uint8_t read (uint8_t *buffer, uint8_t nbyte)
 

Static Protected Attributes

static PORT port
 
static RD rd
 
static WR wr
 
static RXF rxf
 
static TXE txe
 

Member Function Documentation

template<typename PORT , typename RD , typename WR , typename RXF , typename TXE >
static bool modm::Ft245< PORT, RD, WR, RXF, TXE >::read ( uint8_t &  c)
static

Read a single byte from the FIFO

Parameters
cByte read, if any
Returns
true if a byte was received, false otherwise
template<typename PORT , typename RD , typename WR , typename RXF , typename TXE >
static uint8_t modm::Ft245< PORT, RD, WR, RXF, TXE >::read ( uint8_t *  buffer,
uint8_t  nbyte 
)
static

Read a block of bytes from the FIFO

This is blocking.

Parameters
*bufferBuffer for the received data.
nbyteLength of buffer
template<typename PORT , typename RD , typename WR , typename RXF , typename TXE >
static void modm::Ft245< PORT, RD, WR, RXF, TXE >::write ( const uint8_t *  buffer,
uint8_t  nbyte 
)
static

Write a block of bytes to the FIFO

This blocks until the buffer is written.

Parameters
*bufferBuffer of the data that should be written
nbyteLength of buffer
template<typename PORT , typename RD , typename WR , typename RXF , typename TXE >
static bool modm::Ft245< PORT, RD, WR, RXF, TXE >::write ( uint8_t  data)
static

Write a single byte to the FIFO

Parameters
dataSingle byte to write

The documentation for this class was generated from the following file: