pub fn i2c_master(
    clocks: &mut GenericClockController,
    baud: impl Into<Hertz>,
    sercom5: pac::SERCOM5,
    pm: &mut pac::PM,
    sda: impl Into<Sda>,
    scl: impl Into<Scl>,
) -> I2C {
    let gclk0 = clocks.gclk0();
    let clock = &clocks.sercom5_core(&gclk0).unwrap();
    let baud = baud.into();
    let sda = sda.into();
    let scl = scl.into();
    I2CMaster5::new(clock, baud, sercom5, pm, sda, scl)
}
/// Convenience for setting up the labelled SDA, SCL pins to
/// operate as an I2C master running at the specified frequency.
Convenience for setting up the labelled SDA, SCL pins to
operate as an I2C master running at the specified frequency.
Convenience for setting up the labelled SDA SCL pins to operate as an I2C master running at the specified frequency .
pub fn i2c_master(
    clocks: &mut GenericClockController,
    baud: impl Into<Hertz>,
    sercom5: pac::SERCOM5,
    pm: &mut pac::PM,
    sda: impl Into<Sda>,
    scl: impl Into<Scl>,
) -> I2C {
    let gclk0 = clocks.gclk0();
    let clock = &clocks.sercom5_core(&gclk0).unwrap();
    let baud = baud.into();
    let sda = sda.into();
    let scl = scl.into();
    I2CMaster5::new(clock, baud, sercom5, pm, sda, scl)
}
pub fn i2c_master ( clocks : & mut GenericClockController , baud : impl Into < Hertz > , sercom5 : pac :: SERCOM5 , pm : & mut pac :: PM , sda : impl Into < Sda > , scl : impl Into < Scl > , ) -> I2C { let gclk0 = clocks . gclk0 ( ) ; let clock = & clocks . sercom5_core ( & gclk0 ) . unwrap ( ) ; let baud = baud . into ( ) ; let sda = sda . into ( ) ; let scl = scl . into ( ) ; I2CMaster5 :: new ( clock , baud , sercom5 , pm , sda , scl ) }
Convenience for setting up the labelled SDA, SCL pins to
operate as an I2C master running at the specified frequency.
Convenience for setting up the labelled SDA SCL pins to operate as an I2C master running at the specified frequency .
clocks
&mut GenericClockController
baud
impl Into<Hertz>
sercom5
pac::SERCOM5
pm
&mut pac::PM
sda
impl Into<Sda>
scl
impl Into<Scl>
clocks
&mut GenericClockController
baud
impl Into<Hertz>
sercom5
pac::SERCOM5
pm
&mut pac::PM
sda
impl Into<Sda>
scl
impl Into<Scl>