[−][src]Struct mt9v034_i2c::Mt9v034
Main driver struct
Implementations
impl<I2C, CommE> Mt9v034<I2C> where
I2C: Write<Error = CommE> + Read<Error = CommE> + WriteRead<Error = CommE>,
[src]
I2C: Write<Error = CommE> + Read<Error = CommE> + WriteRead<Error = CommE>,
pub fn new(i2c: I2C, address: u8) -> Self
[src]
Create a new instance with an i2c address: May use DEFAULT_I2C_ADDRESS if in doubt.
pub fn default(i2c: I2C) -> Self
[src]
pub fn set_context(&mut self, context: ParamContext) -> Result<(), Error<CommE>>
[src]
With this sensor, the user may switch between two full register sets (listed in Table 7) by writing to a context switch change bit in register 0x07. This context switch will change all registers (no shadowing) at the frame start time and have the new values apply to the immediate next exposure and readout time (frame n+1), except for shutter width and V1-V4 control, which will take effect for next exposure but will show up in the n+2 image.
pub fn setup(&mut self) -> Result<(), Error<CommE>>
[src]
Second-stage configuration
pub fn simple_probe(&mut self) -> Result<(), Error<CommE>>
[src]
pub fn read_reg_u8(&mut self, reg: u8) -> Result<u8, Error<CommE>>
[src]
Read a u8 from an 8-bit address
pub fn read_reg_u16(&mut self, reg: u8) -> Result<u16, Error<CommE>>
[src]
Read a u16 from an 8-bit address
pub fn write_reg_u8(&mut self, reg: u8, val: u8) -> Result<(), Error<CommE>>
[src]
Write a u8 to an 8-bit address
pub fn write_reg_u16(&mut self, reg: u8, data: u16) -> Result<(), Error<CommE>>
[src]
Write a u16 to an 8-bit address
Auto Trait Implementations
impl<I2C> Send for Mt9v034<I2C> where
I2C: Send,
I2C: Send,
impl<I2C> Sync for Mt9v034<I2C> where
I2C: Sync,
I2C: Sync,
impl<I2C> Unpin for Mt9v034<I2C> where
I2C: Unpin,
I2C: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,