class::hal::I2SAttributes

class hal::I2SAttributes
  : public hal::PinAssignmentPeriphAttributes< i2s_attr_t, i2s_pin_assignment_t >

The I2S attribute class is used for configuring and storing I2S port settings.

See also: hal::I2SPinAssignment

See also: hal::I2S

Members

I2SAttributes()
mcu_pin_t sdin() const
mcu_pin_t sdout() const
I2SAttributes & set_flags(

u32 o_flags
)

I2SAttributes & set_frequency(

u32 frequency
)

I2SAttributes & set_mck(

const mcu_pin_t & pin
)

I2SAttributes & set_sck(

const mcu_pin_t & pin
)

I2SAttributes & set_sdin(

const mcu_pin_t & pin
)

I2SAttributes & set_sdout(

const mcu_pin_t & pin
)

I2SAttributes & set_ws(

const mcu_pin_t & pin
)

Details

I2SAttributes()

mcu_pin_t sdin() const

Accesses the serial data input pin assignment value.


mcu_pin_t sdout() const

Access the serial data output pin assignment value.


I2SAttributes & set_flags(

u32 o_flags
)

Sets the o_flags value as specified.


I2SAttributes & set_frequency(

u32 frequency
)

Sets the frequency (rate for left/right clock).


I2SAttributes & set_mck(

const mcu_pin_t & pin
)

Sets the SCL pin assignment value.


I2SAttributes & set_sck(

const mcu_pin_t & pin
)

Sets the SCL pin assignment value.


I2SAttributes & set_sdin(

const mcu_pin_t & pin
)

Sets the SDA pin assignment value.


I2SAttributes & set_sdout(

const mcu_pin_t & pin
)

Sets the SCL pin assignment value.


I2SAttributes & set_ws(

const mcu_pin_t & pin
)

Sets the SCL pin assignment value.


X

Thanks for Coming!

Subscribe to news and updates