sim_twi.h File Reference

yasimavr: sim_twi.h File Reference
yasimavr
Loading...
Searching...
No Matches
sim_twi.h File Reference

Go to the source code of this file.

Classes

class  TWI::EndPoint
 An endpoint connected to a TWI bus. Represents a device connected to a TWI bus model and implements the basic level logic common to a host and a client. More...
 
class  TWI::Client
 Base abstract definition for a TWI client. This class implements the basic state machine to interface a TWI bus as a client. It is design to be controlled by a upper layer object (a controller). The interface notifies the controller of bus events (start, address, etc) via the signals and the controller shall use the API of this class to react accordingly. More...
 
class  TWI::Host
 Base abstract definition for a TWI host. This class implements the basic state machine to interface a TWI bus as a host. It is design to be controlled by a upper layer object (a controller). The interface notifies the controller of bus events (start, address, etc) via the signals and the controller shall use the API of this class to react accordingly. More...
 

Namespaces

namespace  TWI
 Common enums and signal definitions for TWI classes.
 

Macros

Controller requests definition for SPI
#define AVR_CTLREQ_TWI_BUS_ERROR   (AVR_CTLREQ_BASE + 1)
 

Enumerations

enum  TWI::Line { TWI::Line_Clock = 0 , TWI::Line_Data }
 
enum  TWI::BusState { TWI::Bus_Idle = 0 , TWI::Bus_Busy , TWI::Bus_Owned }
 
enum  TWI::SignalId {
  TWI::Signal_StateChanged = 0 , TWI::Signal_BusStateChanged , TWI::Signal_Start , TWI::Signal_AddressStandby ,
  TWI::Signal_AddressSent , TWI::Signal_AddressReceived , TWI::Signal_DataStandby , TWI::Signal_DataSent ,
  TWI::Signal_DataAckReceived , TWI::Signal_DataReceived , TWI::Signal_DataAckSent , TWI::Signal_ArbitrationLost ,
  TWI::Signal_BusCollision , TWI::Signal_Stop
}