Synergy Software Package User's Manual
gpt_instance_ctrl_t Struct Reference

#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.
 

Detailed Description

Channel control block. DO NOT INITIALIZE. Initialization occurs when timer_api_t::open is called.

Field Documentation

◆ p_callback

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.

◆ p_context

void const* gpt_instance_ctrl_t::p_context

Placeholder for user data. Passed to the user callback in timer_callback_args_t.


The documentation for this struct was generated from the following file: