[][src]Struct clyde_3g_eps_api::Eps

pub struct Eps { /* fields omitted */ }

EPS structure containing low level connection and functionality required for commanding and requesting telemetry from EPS device.

Methods

impl Eps[src]

pub fn new(connection: Connection) -> Self[src]

Constructor

Creates new instance of Eps structure.

Arguments

connection - A Connection used as low-level connection to EPS hardware

Trait Implementations

impl Clyde3gEps for Eps[src]

fn get_board_status(&self) -> EpsResult<BoardStatus>[src]

Get Board Status

The status bytes are designed to supply operational data about the I2C Node.

fn get_checksum(&self) -> EpsResult<Checksum>[src]

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.

fn get_version_info(&self) -> EpsResult<VersionInfo>[src]

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.

fn get_last_error(&self) -> EpsResult<LastError>[src]

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.

fn manual_reset(&self) -> EpsResult<()>[src]

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.

fn reset_comms_watchdog(&self) -> EpsResult<()>[src]

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.

fn get_motherboard_telemetry(&self, telem_type: Type) -> EpsResult<f64>[src]

Get Motherboard Telemetry

This command is used to request telemetry items from the motherboard's telemetry node.

Arguments

telem_type - Variant of MotherboardTelemetry::Type to request

fn get_daughterboard_telemetry(&self, telem_type: Type) -> EpsResult<f64>[src]

Get Daughterboard Telemetry

This command is used to request telemetry items from the daughterboard's telemetry node.

Arguments

telem_type - Variant of DaughterboardTelemetry::Type to request

fn get_reset_telemetry(&self, telem_type: Type) -> EpsResult<Data>[src]

Get Reset Telemetry

This command is used to request telemetry items regarding various reset conditions on both the motherboard and daughterboard.

Arguments

telem_type - Variant of ResetTelemetry::Type to request

fn set_comms_watchdog_period(&self, period: u8) -> EpsResult<()>[src]

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.

Arguments

period - Watchdog period to set in minutes

fn get_comms_watchdog_period(&self) -> EpsResult<u8>[src]

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.

fn raw_command(&self, cmd: u8, data: Vec<u8>) -> EpsResult<()>[src]

Issue Raw Command

This command sends a raw command to the EPS

Auto Trait Implementations

impl Send for Eps

impl Unpin for Eps

impl !Sync for Eps

impl !UnwindSafe for Eps

impl !RefUnwindSafe for Eps

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]