Searched refs:I2cAdapter (Results 1 – 2 of 2) sorted by relevance
377 pub struct I2cAdapter<Ctx: device::DeviceContext = device::Normal>( struct382 impl<Ctx: device::DeviceContext> I2cAdapter<Ctx> { implementation388 impl I2cAdapter { implementation408 Ok(unsafe { ARef::from_raw(adapter.cast::<I2cAdapter<device::Normal>>()) }) in get()414 kernel::impl_device_context_deref!(unsafe { I2cAdapter });415 kernel::impl_device_context_into_aref!(I2cAdapter);418 unsafe impl AlwaysRefCounted for I2cAdapter { implementation562 i2c_adapter: &I2cAdapter, in new() argument569 fn try_new(i2c_adapter: &I2cAdapter, i2c_board_info: &I2cBoardInfo) -> Result<Self> { in try_new() argument
124 let adapter = i2c::I2cAdapter::get(SAMPLE_I2C_ADAPTER_INDEX)?; in probe()