Lines Matching defs:Adapter
92 pub struct Adapter<T: Driver>(T);
99 unsafe impl<T: Driver + 'static> driver::DriverLayout for Adapter<T> {
107 unsafe impl<T: Driver + 'static> driver::RegistrationOps for Adapter<T> {
154 impl<T: Driver + 'static> Adapter<T> {
163 Self::i2c_id_info(idev).or_else(|| <Self as driver::Adapter>::id_info(idev.as_ref()));
198 fn i2c_id_table() -> Option<IdTable<<Self as driver::Adapter>::IdInfo>> {
205 fn i2c_id_info(dev: &I2cClient) -> Option<&'static <Self as driver::Adapter>::IdInfo> {
225 impl<T: Driver + 'static> driver::Adapter for Adapter<T> {
253 $crate::module_driver!(<T>, $crate::i2c::Adapter<T>, { $($f)* });
392 /// Returns the I2C Adapter index.