Trident IoT SDK
Loading...
Searching...
No Matches
tr_hal_pwm.h
Go to the documentation of this file.
1
10
11#ifndef TR_HAL_PWM_H_
12#define TR_HAL_PWM_H_
13
14#include "tr_hal_platform.h"
15
16
20
21
27
28
32
33// error check and then load the settings into the registers
35 tr_hal_pwm_settings_t* pwm_settings);
36
37// sets GPIO back to general GPIO and turns off interrupts, etc
39
40
41// this loads the current PWM settings into the pwm_settings passed in
43 tr_hal_pwm_settings_t* pwm_settings);
44
45
49
51
53
55 bool* is_running);
56
57
61
62
63#endif //TR_HAL_PWM_H_
64
tr_hal_status_t
Definition tr_hal_common.h:25
tr_hal_pwm_id_t
Definition T32CM11_pwm.h:31
tr_hal_status_t tr_hal_pwm_is_running(tr_hal_pwm_id_t pwm_id, bool *is_running)
tr_hal_status_t tr_hal_pwm_stop(tr_hal_pwm_id_t pwm_id)
tr_hal_status_t tr_hal_pwm_uninit(tr_hal_pwm_id_t pwm_id)
tr_hal_status_t tr_hal_pwm_init(tr_hal_pwm_id_t pwm_id, tr_hal_pwm_settings_t *pwm_settings)
tr_hal_status_t tr_hal_pwm_start(tr_hal_pwm_id_t pwm_id)
tr_hal_status_t tr_hal_pwm_settings_read(tr_hal_pwm_id_t pwm_id, tr_hal_pwm_settings_t *pwm_settings)
Definition T32CM11_pwm.h:302