|
M5UnitUnified 0.2.0 git rev:9e1ffe1
|
Adapters to treat M5HAL and GPIO in the same way. More...
Go to the source code of this file.
Classes | |
| class | m5::unit::AdapterGPIOBase |
| class | m5::unit::AdapterGPIOBase::GPIOImpl |
Namespaces | |
| namespace | m5 |
| Top level namespace of M5stack. | |
Functions | |
| uint8_t | m5::unit::gpio::calculate_rmt_clk_div (const uint32_t apb_freq_hz, const uint32_t tick_ns) |
| Calculate clk_div from desired tick time (nanoseconds) | |
| uint32_t | m5::unit::gpio::calculate_rmt_resolution_hz (const uint32_t apb_freq_hz, const uint32_t tick_ns) |
| Calculate resolution from desired tick time. | |
Adapters to treat M5HAL and GPIO in the same way.
| uint8_t m5::unit::gpio::calculate_rmt_clk_div | ( | const uint32_t | apb_freq_hz, |
| const uint32_t | tick_ns ) |
Calculate clk_div from desired tick time (nanoseconds)
| apb_freq_hz | Current APB clock (Hz) |
| tick_ns | Desired tick time (ns) |
| uint32_t m5::unit::gpio::calculate_rmt_resolution_hz | ( | const uint32_t | apb_freq_hz, |
| const uint32_t | tick_ns ) |
Calculate resolution from desired tick time.
| apb_freq_hz | Current APB clock (Hz) |
| tick_ns | Desired tick time (ns) |