Class EndPoint
Defined in File sim_twi.h
Inheritance Relationships
Derived Types
public TWI::Client(Class Client)public TWI::Host(Class Host)
Class Documentation
-
class EndPoint
An endpoint connected to a TWI bus. Represents a device connected to a TWI bus model and acting as a host, a client or both.
Subclassed by TWI::Client, TWI::Host
Public Functions
-
EndPoint()
Construction of an end point.
-
virtual ~EndPoint() = default
-
void 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.
-
inline bool get_clock_drive() const
-
inline bool get_data_drive() const
Protected 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)
Return the level of the SCL line driven by this.
-
inline bool get_clock_level() const
-
void set_data_drive(bool level)
Return the level of the SDA line driven by this.
-
inline bool get_data_level() const
-
EndPoint()