pub struct CY8C9560A { /* private fields */ }
Implementations§
Source§impl CY8C9560A
impl CY8C9560A
pub fn new(bus: u8, address: u16) -> Self
pub fn read_device_info(&self) -> Result<(u8, u8), LinuxI2CError>
pub fn read_enable_register(&self) -> Result<u8, LinuxI2CError>
pub fn enable_eeprom(&self) -> Result<(), LinuxI2CError>
pub fn store_config_eeprom_por(&self) -> Result<(), LinuxI2CError>
pub fn reset_config_eeprom_por(&self) -> Result<(), LinuxI2CError>
pub fn read_port_status(&self, port: u8) -> Result<u8, LinuxI2CError>
pub fn initialize_all_outputs(&self) -> Result<(), LinuxI2CError>
pub fn set_output_port(&self, port: u8, value: u8) -> Result<(), LinuxI2CError>
pub fn select_port(&self, port: u8) -> Result<(), LinuxI2CError>
pub fn set_interrupt_mask_port(&self, value: u8) -> Result<(), LinuxI2CError>
pub fn set_pin_direction(&self, value: u8) -> Result<(), LinuxI2CError>
pub fn set_drive_mode(&self, mode: u8) -> Result<(), LinuxI2CError>
pub fn set_rf_switch(&self, channel: u8, mode: u8) -> Result<(), LinuxI2CError>
pub fn reset_clock_synthesizer(&self) -> Result<(), LinuxI2CError>
pub fn enable_tcal_clock(&self) -> Result<(), LinuxI2CError>
pub fn disable_tcal_clock(&self) -> Result<(), LinuxI2CError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CY8C9560A
impl RefUnwindSafe for CY8C9560A
impl Send for CY8C9560A
impl Sync for CY8C9560A
impl Unpin for CY8C9560A
impl UnwindSafe for CY8C9560A
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more