TEMU  2
The Terma Emulator
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
temu_SpwPortIface Struct Reference

#include <temu-c/Bus/Spacewire.h>

Collaboration diagram for temu_SpwPortIface:

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.

Definition at line 72 of file Spacewire.h.

Field Documentation

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

Connect a device to this port.

Definition at line 95 of file Spacewire.h.

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

Disconnects the device currently connected to this port.

Definition at line 100 of file Spacewire.h.

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

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

Definition at line 90 of file Spacewire.h.

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.

Definition at line 78 of file Spacewire.h.

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.

Definition at line 84 of file Spacewire.h.

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.

Definition at line 106 of file Spacewire.h.


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