class::hal::PeriphAttributes

Summary

[PeriphAttributes](#classhal_1_1_periph_attributes_1aa915d90478983556821ad3c1ccfd4d3f)()

const attr_t & attributes() const

attr_t & attributes()

u32 freq() const

u32 frequency() const

u32 o_flags() const

attr_t * operator ->()

const attr_t * operator ->() const

u8 port() const

PeriphAttributes & set_flags(

u32 o_flags
)

PeriphAttributes & set_freq(

u32 freq_hz
)

PeriphAttributes & set_frequency(

u32 freq_hz
)

PeriphAttributes & set_port(

u8 port
)

protected attr_t m_attr

Members

PeriphAttributes()

const attr_t & attributes() const

attr_t & attributes()

u32 freq() const

u32 frequency() const

Access the frequency in hertz (bits/second).


u32 o_flags() const

Accesses the value of the flags.


attr_t * operator ->()

const attr_t * operator ->() const

u8 port() const

Accesses the value of the port.


PeriphAttributes & set_flags(

u32 o_flags
)

Sets the value of the flags.


PeriphAttributes & set_freq(

u32 freq_hz
)


PeriphAttributes & set_frequency(

u32 freq_hz
)

Set the frequency.

Parameters

  • freq_hz The frequency in Hertz (bits/second)

PeriphAttributes & set_port(

u8 port
)

Sets the value of the port.


protected attr_t m_attr

X

Thanks for Coming!

Subscribe to news and updates