EndPoint Class Reference

yasimavr: TWI::EndPoint Class Reference
yasimavr
Loading...
Searching...
No Matches

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...

#include <sim_twi.h>

Inheritance diagram for TWI::EndPoint:
TWI::Client TWI::Host ArchAVR_TWI::_Client ArchXT_TWI::_Client ArchAVR_TWI::_Host ArchXT_TWI::_Host

Public Member Functions

 EndPoint ()
 
virtual ~EndPoint ()=default
 
void line_state_changed (TWI::Line line, bool dig_state)
 
bool get_clock_drive () const
 
bool get_data_drive () const
 

Protected Member Functions

virtual void clock_level_changed (bool level)=0
 
virtual void data_level_changed (bool level)=0
 
virtual void set_line_state (TWI::Line line, bool dig_state)=0
 
void set_clock_drive (bool level)
 
bool get_clock_level () const
 
void set_data_drive (bool level)
 
bool get_data_level () const
 

Detailed Description

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.

See also
Client, Host

Constructor & Destructor Documentation

◆ EndPoint()

EndPoint::EndPoint ( )

◆ ~EndPoint()

virtual TWI::EndPoint::~EndPoint ( )
virtualdefault

Member Function Documentation

◆ clock_level_changed()

virtual void TWI::EndPoint::clock_level_changed ( bool  level)
protectedpure virtual

Implemented in TWI::Client, and TWI::Host.

◆ data_level_changed()

virtual void TWI::EndPoint::data_level_changed ( bool  level)
protectedpure virtual

Implemented in TWI::Client, and TWI::Host.

◆ get_clock_drive()

bool TWI::EndPoint::get_clock_drive ( ) const
inline

◆ get_clock_level()

bool TWI::EndPoint::get_clock_level ( ) const
inlineprotected

◆ get_data_drive()

bool TWI::EndPoint::get_data_drive ( ) const
inline

◆ get_data_level()

bool TWI::EndPoint::get_data_level ( ) const
inlineprotected

◆ line_state_changed()

void EndPoint::line_state_changed ( TWI::Line  line,
bool  dig_state 
)

Inform the interface of a digital state change on a line (SCL or SDA). The state of the interface will transition accordingly.

◆ set_clock_drive()

void EndPoint::set_clock_drive ( bool  level)
protected

Return the level of the SCL line driven by this.

◆ set_data_drive()

void EndPoint::set_data_drive ( bool  level)
protected

Return the level of the SDA line driven by this.

◆ set_line_state()

virtual void TWI::EndPoint::set_line_state ( TWI::Line  line,
bool  dig_state 
)
protectedpure virtual

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