Trait kernel::hil::crc::Client

source ·
pub trait Client {
    // Required methods
    fn input_done(
        &self,
        result: Result<(), ErrorCode>,
        buffer: SubSliceMut<'static, u8>
    );
    fn crc_done(&self, result: Result<CrcOutput, ErrorCode>);
}
Expand description

Client for CRC algorithm implementations

Implement this trait and use Crc::set_client in order to receive callbacks from the CRC implementation.

Required Methods§

source

fn input_done( &self, result: Result<(), ErrorCode>, buffer: SubSliceMut<'static, u8> )

Called when the current data chunk has been processed by the CRC engine. Further data may be supplied when this callback is received.

source

fn crc_done(&self, result: Result<CrcOutput, ErrorCode>)

Called when the CRC computation is finished.

Implementors§