Class TWIBus
Defined in File sim_twi.h
Class Documentation
-
class TWIBus
A central object to circulate packets between multiple TWI endpoints.
See also
Public Types
-
enum SignalId
Signal ID definitions.
Values:
-
enumerator Signal_Start
Raised when the bus has been acquired by a master. sigdata is a pointer to the endpoint master who acquired the bus.
-
enumerator Signal_Address
Raised when a address packet is sent over the bus. sigdata is a pointer the packet.
-
enumerator Signal_Data
Raised when a data packet is sent over the bus. sigdata is a pointer to the packet.
-
enumerator Signal_Packet_End
Raised when a long packet is ended. no data attached.
-
enumerator Signal_Ack
Raised when a ACK/NACK (address or data) is sent over the bus. sigdata is a pointer to the packet.
-
enumerator Signal_Stop
Raised when the bus is released. sigdata is a pointer to the endpoint master that owned the bus.
-
enumerator Signal_Start
Public Functions
-
TWIBus()
-
~TWIBus()
-
void add_endpoint(TWIEndPoint &endpoint)
Add a TWIEndPoint to this bus.
-
void remove_endpoint(TWIEndPoint &endpoint)
Remove a TWIEndPoint from this bus.
-
enum SignalId