Classes
SpwRouter
The SpwRouter class provides a simple SpaceWire Router that lets the user configure the mapping between the packet-address and the port that will be used to forward the packet. More advanced features like Group Adaptive Routing or Packet Distribution are not implemented.
Attributes
Properties
Name | Type | Description |
---|---|---|
internal.linkState |
[32 x int32_t] |
Holds the link state of the ports |
object.timeSource |
object |
Time source object (a cpu or machine object) |
ports |
[32 x iref / <unknown>] |
Connected SpaceWire devices |
routingTable |
[256 x uint8_t] |
Configure packet-address/forwarding-port mapping |
Attributes
Properties
Name | Type | Description |
---|---|---|
count.Rx |
uint32_t |
Counter for received messages. |
count.Tx |
uint32_t |
Counter for received messages. |
enabled |
uint8_t |
Enable/Disable UDP. Required to change properties. |
internal.linkState |
int32_t |
Holds the link state of the port |
object.timeSource |
object |
Time source object (a cpu or machine object) |
port |
iref / <unknown> |
Connected SpaceWire device. |
protocolId |
uint8_t |
Protocol ID to be used. |
rxUdpPort |
uint16_t |
Udp port used to receive. |
targetAddr |
[16 x uint8_t] |
Addresses to use to forard a packet received via UDP. |
targetAddrLength |
uint8_t |
Number of valid addresses in targetAddr array. |
txHost |
cstring |
File name to write TTY log to. |
txUdpPort |
uint16_t |
Udp port used to send. |