TEMU
4.4
The Terma Emulator
|
#include </builds/termade/temu/temu/include/temu-c/Bus/Spacewire.h>
Data Fields | |
void(* | receive )(void *Device, void *Sender, temu_SpwPacket *Pkt) |
void(* | signalLinkStateChange )(void *Device, temu_SpwLinkState LinkState) |
temu_SpwLinkState(* | getOtherSideLinkState )(void *Device) |
void(* | connect )(void *Device, temu_SpwPortIfaceRef Dest) |
void(* | disconnect )(void *Device) |
uint64_t(* | timeToSendPacketNs )(void *Device, uint64_t PacketLength) |
SpaceWire port interface. A model must implement this interface for each SpaceWire port.
void(* temu_SpwPortIface::connect) (void *Device, temu_SpwPortIfaceRef Dest) |
Connect a device to this port.
void(* temu_SpwPortIface::disconnect) (void *Device) |
Disconnects the device currently connected to this port.
temu_SpwLinkState(* temu_SpwPortIface::getOtherSideLinkState) (void *Device) |
Should return the link state of the device. Called by the other end device to handle connection.
void(* temu_SpwPortIface::receive) (void *Device, void *Sender, temu_SpwPacket *Pkt) |
Implement to receive and handle the SpaceWire packet. This will be called by the model on the other end that sends or forwards the packet.
void(* temu_SpwPortIface::signalLinkStateChange) (void *Device, temu_SpwLinkState LinkState) |
The other end device (A) uses this to inform this device (B) about its (A) change of link state.
uint64_t(* temu_SpwPortIface::timeToSendPacketNs) (void *Device, uint64_t PacketLength) |
Return the amount of time required to send a packet through the port, in nano seconds.