FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pwm_data_s Struct Reference

Data Fields

uint32_t frequency
 
uint32_t nb_open
 
pi_task_tevent_task
 
pi_freq_cb_t pwm_freq_cb
 
uint8_t device_id
 
uint8_t duty_cycle [ARCHI_NB_CHANNEL_PER_PWM]
 

Field Documentation

uint8_t pwm_data_s::device_id
uint8_t pwm_data_s::duty_cycle
pi_task_t * pwm_data_s::event_task

Event task attached.

Referenced by __pi_pwm_handler(), __pi_pwm_open(), and __pi_pwm_user_cb_attach().

uint32_t pwm_data_s::frequency
uint32_t pwm_data_s::nb_open

Number of open.

Referenced by __pi_pwm_close(), and __pi_pwm_open().

pi_freq_cb_t pwm_data_s::pwm_freq_cb

Callback associated to frequency changes.

Referenced by __pi_pwm_close(), and __pi_pwm_open().