1 #ifndef RUUVI_INTERFACE_GPIO_PWM_H
2 #define RUUVI_INTERFACE_GPIO_PWM_H
8 # define RUUVI_NRF5_SDK15_GPIO_PWM_ENABLED RUUVI_NRF5_SDK15_ENABLED
70 float *
const frequency,
float *
const duty_cycle);
uint32_t rd_status_t
bitfield for representing errors
rd_status_t ri_gpio_pwm_stop(const ri_gpio_id_t pin)
Stop PWM on given pin.
bool ri_gpio_pwm_is_init(void)
Check if PWM is initialized.
rd_status_t ri_gpio_pwm_init(void)
Run any necessary initialization for PWM.
rd_status_t ri_gpio_pwm_start(const ri_gpio_id_t pin, const ri_gpio_mode_t mode, float *const frequency, float *const duty_cycle)
Start PWM on given pin at given frequency and duty cycle.
rd_status_t ri_gpio_pwm_uninit(void)
Uninitialize PWM.
Header to enable and disable module compilation.
Ruuvi error codes and error check function.
uint16_t ri_gpio_id_t
port<<8 + pin