pub struct Channel { /* private fields */ }
Expand description

An Industrial I/O Device Channel

Implementations

Retrieves the name of the channel (e.g. vccint)

@brief Retrieve the channel ID (e.g. voltage0)

Determines if the channel is a scan element

A scan element is a channel that can generate samples (for an input channel) or receive samples (for an output channel) after being enabled.

Gets the number of context-specific attributes

Gets the channel-specific attribute at the index

Reads a channel-specific attribute as a boolean attr The name of the attribute

Reads a channel-specific attribute as an integer (i64)

attr The name of the attribute

Reads a channel-specific attribute as a floating-point (f64) number

attr The name of the attribute

Writes a channel-specific attribute as a boolean

attr The name of the attribute val The value to write

Writes a channel-specific attribute as an integer (i64)

attr The name of the attribute val The value to write

Writes a channel-specific attribute as a floating-point (f64) number

attr The name of the attribute val The value to write

Gets an iterator for the attributes of the channel

Enable the channel

Before creating a buffer, at least one channel of the device must be enabled.

Disables the channel

Determines if the channel is enabled

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.

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.