[][src]Trait smbus_request_parser::CommandHandler

pub trait CommandHandler {
    pub fn handle_read_byte(&self) -> Option<u8>;
pub fn handle_read_byte_data(&self, reg: u8) -> Option<u8>;
pub fn handle_read_word_data(&self, reg: u8) -> Option<u16>;
pub fn handle_read_block_data(&self, reg: u8, index: u8) -> Option<u8>;
pub fn handle_write_byte(&mut self, data: u8) -> Result<(), ()>;
pub fn handle_write_byte_data(
        &mut self,
        reg: u8,
        data: u8
    ) -> Result<(), ()>;
pub fn handle_write_word_data(
        &mut self,
        reg: u8,
        data: u16
    ) -> Result<(), ()>;
pub fn handle_write_block_data(
        &mut self,
        reg: u8,
        count: u8,
        block: &[u8]
    ) -> Result<(), ()>; pub fn handle_i2c_event(
        &mut self,
        event: &mut I2CEvent<'_>,
        bus_state: &mut SMBusState
    ) -> Result<(), SMBusProtocolError> { ... } }

Required methods

pub fn handle_read_byte(&self) -> Option<u8>[src]

pub fn handle_read_byte_data(&self, reg: u8) -> Option<u8>[src]

pub fn handle_read_word_data(&self, reg: u8) -> Option<u16>[src]

pub fn handle_read_block_data(&self, reg: u8, index: u8) -> Option<u8>[src]

pub fn handle_write_byte(&mut self, data: u8) -> Result<(), ()>[src]

pub fn handle_write_byte_data(&mut self, reg: u8, data: u8) -> Result<(), ()>[src]

pub fn handle_write_word_data(&mut self, reg: u8, data: u16) -> Result<(), ()>[src]

pub fn handle_write_block_data(
    &mut self,
    reg: u8,
    count: u8,
    block: &[u8]
) -> Result<(), ()>
[src]

Loading content...

Provided methods

pub fn handle_i2c_event(
    &mut self,
    event: &mut I2CEvent<'_>,
    bus_state: &mut SMBusState
) -> Result<(), SMBusProtocolError>
[src]

Loading content...

Implementors

Loading content...