_Host Class Reference

yasimavr: ArchXT_TWI::_Host Class Reference
yasimavr
Loading...
Searching...
No Matches
Inheritance diagram for ArchXT_TWI::_Host:
TWI::Host TWI::EndPoint CycleTimer

Public Member Functions

 _Host (ArchXT_TWI &per)
 
- Public Member Functions inherited from TWI::Host
 Host ()
 
void init (CycleManager &manager)
 
State state () const
 
void set_enabled (bool enabled)
 
bool enabled () const
 
void reset ()
 
void set_bit_delay (cycle_count_t delay)
 
bool bus_busy () const
 
bool active () const
 
bool clock_hold () const
 
bool clock_stretched () const
 
unsigned char rw () const
 
bool ack () const
 
bool start_transfer ()
 
bool set_address (uint8_t addr_rw)
 
bool start_data_tx (uint8_t data)
 
bool start_data_rx ()
 
bool set_ack (bool ack)
 
bool stop_transfer ()
 
Signalsignal ()
 
virtual cycle_count_t next (cycle_count_t when) override
 Callback from the cycle loop.
 
- Public Member Functions inherited from TWI::EndPoint
 EndPoint ()
 
virtual ~EndPoint ()=default
 
void line_state_changed (TWI::Line line, bool dig_state)
 
bool get_clock_drive () const
 
bool get_data_drive () const
 
- Public Member Functions inherited from CycleTimer
 CycleTimer ()
 
 CycleTimer (const CycleTimer &other)
 
virtual ~CycleTimer ()
 
bool scheduled () const
 Returns true if this timer is scheduled with a manager.
 
bool paused () const
 
cycle_count_t remaining_delay () const
 
CycleTimeroperator= (const CycleTimer &other)
 

Protected Member Functions

virtual void set_line_state (Line line, bool dig_state) override
 
- Protected Member Functions inherited from TWI::Host
virtual void clock_level_changed (bool level) override
 
virtual void data_level_changed (bool level) override
 
- Protected Member Functions inherited from TWI::EndPoint
void set_clock_drive (bool level)
 
bool get_clock_level () const
 
void set_data_drive (bool level)
 
bool get_data_level () const
 

Additional Inherited Members

- Public Types inherited from TWI::Host
enum  State {
  State_Disabled = 0 , State_Idle , State_Start , State_AddressTx ,
  State_AddressAck , State_DataTx , State_DataTxAck , State_DataRx ,
  State_DataRxAck , State_Stop , State_BusBusy , State_ArbLost ,
  State_Count
}
 

Constructor & Destructor Documentation

◆ _Host()

ArchXT_TWI::_Host::_Host ( ArchXT_TWI per)
inline

Member Function Documentation

◆ set_line_state()

virtual void ArchXT_TWI::_Host::set_line_state ( Line  line,
bool  dig_state 
)
inlineoverrideprotectedvirtual

Implements TWI::EndPoint.


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