![]() |
Synergy Software Package User's Manual
|
#include <r_gpt.h>
Data Fields | |
| void(* | p_callback )(timer_callback_args_t *p_args) |
| void const * | p_context |
| void * | p_reg |
| Base register for this channel. | |
| uint32_t | open |
| Whether or not channel is open. | |
| uint8_t | channel |
| Channel number. | |
| bool | one_shot |
| Whether or not timer is in one shot mode. | |
| bool | gtioca_output_enabled |
| Set to true to enable gtioca pin output. | |
| bool | gtiocb_output_enabled |
| Set to true to enable gtiocb pin output. | |
| IRQn_Type | irq |
| Counter overflow IRQ number. | |
| timer_variant_t | variant |
| Timer variant. | |
| gpt_shortest_level_t | shortest_pwm_signal |
| Shortest PWM signal level. | |
Channel control block. DO NOT INITIALIZE. Initialization occurs when timer_api_t::open is called.
| void(* gpt_instance_ctrl_t::p_callback) (timer_callback_args_t *p_args) |
Callback provided when a timer ISR occurs. NULL indicates no CPU interrupt.
| void const* gpt_instance_ctrl_t::p_context |
Placeholder for user data. Passed to the user callback in timer_callback_args_t.