TEMU  4.4
The Terma Emulator
temu_SpwPortIface Struct Reference

#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)
 

Detailed Description

SpaceWire port interface. A model must implement this interface for each SpaceWire port.

Field Documentation

◆ connect

void(* temu_SpwPortIface::connect) (void *Device, temu_SpwPortIfaceRef Dest)

Connect a device to this port.

◆ disconnect

void(* temu_SpwPortIface::disconnect) (void *Device)

Disconnects the device currently connected to this port.

◆ getOtherSideLinkState

temu_SpwLinkState(* temu_SpwPortIface::getOtherSideLinkState) (void *Device)

Should return the link state of the device. Called by the other end device to handle connection.

◆ receive

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.

◆ signalLinkStateChange

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.

◆ timeToSendPacketNs

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.


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