pub struct RttActiveChannel {
    pub up_channel: Option<UpChannel>,
    pub down_channel: Option<DownChannel>,
    pub channel_name: String,
    pub data_format: DataFormat,
    /* private fields */
}
Expand description

This is the primary interface through which RTT channel data is read and written. Every actual RTT channel has a configuration and buffer that is used for this purpose.

Fields§

§up_channel: Option<UpChannel>§down_channel: Option<DownChannel>§channel_name: String§data_format: DataFormat

Implementations§

A fully configured RttActiveChannel. The configuration will always try to ‘default’ based on information read from the RTT control block in the binary. Where insufficient information is available, it will use the supplied configuration, with final hardcoded defaults where no other information was available.

Returns the number of the UpChannel.

Polls the RTT target for new data on the channel represented by self. Processes all the new data into the channel internal buffer and returns the number of bytes that was read.

Retrieves available data from the channel and if available, returns Some(channel_number:String, formatted_data:String). If no data is available, or we encounter a recoverable error, it returns None value fore formatted_data. Non-recoverable errors are propagated to the caller.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more