[][src]Trait mcp2210::Commands

pub trait Commands: CommandResponse {
    fn get_chip_status(&mut self) -> Result<ChipStatus, Mcp2210Error> { ... }
fn cancel_spi_transfer(&mut self) -> Result<ChipStatus, Mcp2210Error> { ... }
fn get_interrupt_event_counter(&mut self) -> Result<u16, Mcp2210Error> { ... }
fn reset_interrupt_event_counter(&mut self) -> Result<u16, Mcp2210Error> { ... }
fn get_chip_settings(&mut self) -> Result<ChipSettings, Mcp2210Error> { ... }
fn set_chip_settings(
        &mut self,
        settings: &ChipSettings
    ) -> Result<(), Mcp2210Error> { ... }
fn set_gpio_value(&mut self, value: GpioValue) -> Result<(), Mcp2210Error> { ... }
fn get_gpio_value(&mut self) -> Result<GpioValue, Mcp2210Error> { ... }
fn set_gpio_direction(
        &mut self,
        direction: GpioDirection
    ) -> Result<(), Mcp2210Error> { ... }
fn get_gpio_direction(&mut self) -> Result<GpioDirection, Mcp2210Error> { ... }
fn set_spi_transfer_settings(
        &mut self,
        settings: &SpiTransferSettings
    ) -> Result<(), Mcp2210Error> { ... }
fn get_spi_transfer_settings(
        &mut self
    ) -> Result<SpiTransferSettings, Mcp2210Error> { ... }
fn spi_transfer<'a>(
        &mut self,
        data: &[u8],
        res: &'a mut Buffer
    ) -> Result<SpiTransferResponse<'a>, Mcp2210Error> { ... }
fn read_eeprom(&mut self, addr: u8) -> Result<u8, Mcp2210Error> { ... }
fn write_eeprom(&mut self, addr: u8, data: u8) -> Result<(), Mcp2210Error> { ... }
fn set_nvram_spi_transfer_settings(
        &mut self,
        settings: &SpiTransferSettings
    ) -> Result<(), Mcp2210Error> { ... }
fn set_nvram_chip_settings(
        &mut self,
        settings: &ChipSettings,
        password: Option<&[u8; 8]>
    ) -> Result<(), Mcp2210Error> { ... }
fn set_nvram_usb_parameters(
        &mut self,
        params: &UsbParameters
    ) -> Result<(), Mcp2210Error> { ... }
fn set_nvram_usb_product_name(
        &mut self,
        name: &str
    ) -> Result<(), Mcp2210Error> { ... }
fn set_nvram_usb_vendor_name(
        &mut self,
        name: &str
    ) -> Result<(), Mcp2210Error> { ... }
fn get_nvram_spi_transfer_settings(
        &mut self
    ) -> Result<SpiTransferSettings, Mcp2210Error> { ... }
fn get_nvram_chip_settings(&mut self) -> Result<ChipSettings, Mcp2210Error> { ... }
fn get_nvram_usb_parameters(
        &mut self
    ) -> Result<UsbParameters, Mcp2210Error> { ... }
fn get_nvram_usb_product_name(&mut self) -> Result<String, Mcp2210Error> { ... }
fn get_nvram_usb_vendor_name(&mut self) -> Result<String, Mcp2210Error> { ... }
fn send_access_password(
        &mut self,
        password: &[u8; 8]
    ) -> Result<(), Mcp2210Error> { ... }
fn request_bus_release(
        &mut self,
        ack_value: bool
    ) -> Result<(), Mcp2210Error> { ... } }

Provided methods

fn get_chip_status(&mut self) -> Result<ChipStatus, Mcp2210Error>

fn cancel_spi_transfer(&mut self) -> Result<ChipStatus, Mcp2210Error>

fn get_interrupt_event_counter(&mut self) -> Result<u16, Mcp2210Error>

fn reset_interrupt_event_counter(&mut self) -> Result<u16, Mcp2210Error>

fn get_chip_settings(&mut self) -> Result<ChipSettings, Mcp2210Error>

fn set_chip_settings(
    &mut self,
    settings: &ChipSettings
) -> Result<(), Mcp2210Error>

fn set_gpio_value(&mut self, value: GpioValue) -> Result<(), Mcp2210Error>

fn get_gpio_value(&mut self) -> Result<GpioValue, Mcp2210Error>

fn set_gpio_direction(
    &mut self,
    direction: GpioDirection
) -> Result<(), Mcp2210Error>

fn get_gpio_direction(&mut self) -> Result<GpioDirection, Mcp2210Error>

fn set_spi_transfer_settings(
    &mut self,
    settings: &SpiTransferSettings
) -> Result<(), Mcp2210Error>

fn get_spi_transfer_settings(
    &mut self
) -> Result<SpiTransferSettings, Mcp2210Error>

fn spi_transfer<'a>(
    &mut self,
    data: &[u8],
    res: &'a mut Buffer
) -> Result<SpiTransferResponse<'a>, Mcp2210Error>

fn read_eeprom(&mut self, addr: u8) -> Result<u8, Mcp2210Error>

fn write_eeprom(&mut self, addr: u8, data: u8) -> Result<(), Mcp2210Error>

fn set_nvram_spi_transfer_settings(
    &mut self,
    settings: &SpiTransferSettings
) -> Result<(), Mcp2210Error>

fn set_nvram_chip_settings(
    &mut self,
    settings: &ChipSettings,
    password: Option<&[u8; 8]>
) -> Result<(), Mcp2210Error>

fn set_nvram_usb_parameters(
    &mut self,
    params: &UsbParameters
) -> Result<(), Mcp2210Error>

fn set_nvram_usb_product_name(&mut self, name: &str) -> Result<(), Mcp2210Error>

fn set_nvram_usb_vendor_name(&mut self, name: &str) -> Result<(), Mcp2210Error>

fn get_nvram_spi_transfer_settings(
    &mut self
) -> Result<SpiTransferSettings, Mcp2210Error>

fn get_nvram_chip_settings(&mut self) -> Result<ChipSettings, Mcp2210Error>

fn get_nvram_usb_parameters(&mut self) -> Result<UsbParameters, Mcp2210Error>

fn get_nvram_usb_product_name(&mut self) -> Result<String, Mcp2210Error>

fn get_nvram_usb_vendor_name(&mut self) -> Result<String, Mcp2210Error>

fn send_access_password(
    &mut self,
    password: &[u8; 8]
) -> Result<(), Mcp2210Error>

fn request_bus_release(&mut self, ack_value: bool) -> Result<(), Mcp2210Error>

Loading content...

Implementors

impl<T> Commands for T where
    T: CommandResponse
[src]

Loading content...