pub struct AtlasScientificChannels {
pub tx_atlas_scientific_to_i2c_interface: AquaSender<I2cRequest>,
pub rx_atlas_scientific_from_i2c_interface: AquaReceiver<Result<I2cResponse, I2cError>>,
pub tx_atlas_scientific_to_signal_handler: AquaSender<bool>,
pub rx_atlas_scientific_from_signal_handler: AquaReceiver<InternalCommand>,
}Expand description
Struct collects the channels for the communication between AtlasScientific and other components.
Fields§
§tx_atlas_scientific_to_i2c_interface: AquaSender<I2cRequest>Sender part of the channel for communication to I2CInterface
rx_atlas_scientific_from_i2c_interface: AquaReceiver<Result<I2cResponse, I2cError>>Receiver part of the channel for communication from I2CInterface
tx_atlas_scientific_to_signal_handler: AquaSender<bool>Sender part of the channel for communication to the signal handler
rx_atlas_scientific_from_signal_handler: AquaReceiver<InternalCommand>Receiver part of the channel for communication from the signal handler
Implementations§
Source§impl AtlasScientificChannels
impl AtlasScientificChannels
Sourcepub fn send_to_i2c_interface(
&mut self,
request: I2cRequest,
) -> Result<(), AquaChannelError>
pub fn send_to_i2c_interface( &mut self, request: I2cRequest, ) -> Result<(), AquaChannelError>
Sends a request to the I2C interface.
Sourcepub fn receive_from_i2c_interface(
&mut self,
) -> Result<Result<I2cResponse, I2cError>, AquaChannelError>
pub fn receive_from_i2c_interface( &mut self, ) -> Result<Result<I2cResponse, I2cError>, AquaChannelError>
Receives a result from the I2C interface.
Sourcepub fn send_to_signal_handler(
&mut self,
status: bool,
) -> Result<(), AquaChannelError>
pub fn send_to_signal_handler( &mut self, status: bool, ) -> Result<(), AquaChannelError>
Sends a request to the I2C interface.
Trait Implementations§
Source§impl AcknowledgeSignalHandlerTrait for AtlasScientificChannels
impl AcknowledgeSignalHandlerTrait for AtlasScientificChannels
Source§fn send_true_to_signal_handler(&mut self) -> Result<(), AquaChannelError>
fn send_true_to_signal_handler(&mut self) -> Result<(), AquaChannelError>
Source§fn location(&self) -> String
fn location(&self) -> String
Returns the source location (module path) for logging purposes. Read more
Source§fn acknowledge_signal_handler(&mut self)
fn acknowledge_signal_handler(&mut self)
Acknowledges the
SignalHandler by sending a confirmation message. Read moreAuto Trait Implementations§
impl Freeze for AtlasScientificChannels
impl RefUnwindSafe for AtlasScientificChannels
impl Send for AtlasScientificChannels
impl !Sync for AtlasScientificChannels
impl Unpin for AtlasScientificChannels
impl UnwindSafe for AtlasScientificChannels
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more