pub struct Eps { /* fields omitted */ }
EPS structure containing low level connection and functionality
required for commanding and requesting telemetry from EPS device.
Constructor
Creates new instance of Eps structure.
connection
- A Connection
used as low-level connection to EPS hardware
Get Board Status
The status bytes are designed to supply operational data about the I2C Node.
Get Checksum
This command instructs the node to self-inspect its ROM contents in order
to generate a checksum. The value retrieved can be used to determine whether
the contents of the ROM have changed during the operation of the device.
Get Version
The version number of the firmware will be returned on this command.
The revision number returns the current revision of the firmware that is
present on the board. The firmware number returns the current firmware on the board.
Get Last Error
If an error has been generated after attempting to execute a user's command,
this command can be used to retrieve details about the error.
Manual Reset
If required the user can reset the TTC node using this command. When issued,
the board will reset within 1 second. This command will result in the board
being brought up in its defined initial condition. Resetting the board in
this fashion will increment the Manual Reset Counter.
Reset Communications Watchdog
Any valid command will reset the communications watchdog timer. If the user
does not require any telemetry from the board, this command can be sent
to reset the communications watchdog.
Get Motherboard Telemetry
This command is used to request telemetry items from the motherboard's
telemetry node.
telem_type
- Variant of MotherboardTelemetry::Type
to request
Get Daughterboard Telemetry
This command is used to request telemetry items from the daughterboard's
telemetry node.
telem_type
- Variant of DaughterboardTelemetry::Type
to request
Get Reset Telemetry
This command is used to request telemetry items regarding various
reset conditions on both the motherboard and daughterboard.
telem_type
- Variant of ResetTelemetry::Type
to request
Set Communications Watchdog Period
The Communications Watchdog by default has a value of 4 minutes set as
its timeout period. If 4 minutes pass without a command being received
then the device will reboot into its pre-defined initial state. This
value of 4 minutes can be changed using the Set Communications Watchdog
Period command, 0x21. The data byte specifies the number of minutes the
communications watchdog will wait before timing out.
period
- Watchdog period to set in minutes
Get Communications Watchdog Period
This command provides the user with the current communications watchdog
timeout that has been set. The returned value is indicated in minutes.
Issue Raw Command
This command sends a raw command to the EPS
[+] Show hidden undocumented items
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
[−]
[+] Show hidden undocumented items
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)