class::hal::SAIAttributes

class hal::SAIAttributes
  : public hal::PinAssignmentPeriphAttributes< sai_attr_t, sai_pin_assignment_t >

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

See also: hal::SAIPinAssignment

See also: hal::I2S

Summary

mcu_pin_t fs

mcu_pin_t mclk

mcu_pin_t sck

mcu_pin_t sd

[SAIAttributes](#classhal_1_1_s_a_i_attributes_1a93f475824251e7011481116a8cdf3ca9)(  

u32 o_flags,
u32 freq,
u32 mck_mult
)

mcu_pin_t fs_pin() const

mcu_pin_t mclk_pin() const

mcu_pin_t sck_pin() const

mcu_pin_t sd_pin() const

void set_flags(

u32 o_flags
)

void set_freq(

u32 frequency
)

void set_frequency(

u32 frequency
)

void set_fs(

const mcu_pin_t & pin
)

void set_mclk(

const mcu_pin_t & pin
)

void set_sck(

const mcu_pin_t & pin
)

void set_sd(

const mcu_pin_t & pin
)

Members

mcu_pin_t fs

frame synchronization


mcu_pin_t mclk

output master clock not used in slave mode


mcu_pin_t sck

in/out bit clock


mcu_pin_t sd

data line


SAIAttributes(

u32 o_flags,
u32 freq,
u32 mck_mult
)


mcu_pin_t fs_pin() const

Access the FS pin assignment value - frame synchronization.


mcu_pin_t mclk_pin() const

Sets the mclk pin assignment value - output master clock not used in slave mode.


mcu_pin_t sck_pin() const

Access the serial in/out bit clock pin assignment value.


mcu_pin_t sd_pin() const

Accesses the serial data line pin assignment value.


void set_flags(

u32 o_flags
)

Sets the o_flags value as specified.


void set_freq(

u32 frequency
)


void set_frequency(

u32 frequency
)

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


void set_fs(

const mcu_pin_t & pin
)

Sets the FS pin assignment value - frame synchronization.


void set_mclk(

const mcu_pin_t & pin
)

Sets the mclk pin assignment value - output master clock not used in slave mode.


void set_sck(

const mcu_pin_t & pin
)

Sets the SCK pin assignment value - in/out bit clock.


void set_sd(

const mcu_pin_t & pin
)

Sets the SD pin assignment value - data line.


X

Thanks for Coming!

Subscribe to news and updates