TMPM4G9  V1.0.0.0
bsp_pulse.h
Go to the documentation of this file.
1 
13 /*------------------------------------------------------------------------------*/
14 /* Define to prevent recursive inclusion */
15 /*------------------------------------------------------------------------------*/
16 #ifndef __BSP_PULSE_H
17 #define __BSP_PULSE_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /*------------------------------------------------------------------------------*/
24 /* Includes */
25 /*------------------------------------------------------------------------------*/
26 #include "txz_sample_def.h"
27 #include "bsp_timer.h"
37 /*------------------------------------------------------------------------------*/
38 /* Macro Function */
39 /*------------------------------------------------------------------------------*/
45 /* no define */
46  /* End of group BSP_UTILITIES_Exported_macro */
50 
51 
52 /*------------------------------------------------------------------------------*/
53 /* Configuration */
54 /*------------------------------------------------------------------------------*/
60 /* no define */
61  /* End of group BSP_UTILITIES_Exported_define */
65 
66 
67 /*------------------------------------------------------------------------------*/
68 /* Macro Definition */
69 /*------------------------------------------------------------------------------*/
75 /* no define */
76 
77  /* End of group BSP_UTILITIES_Exported_define */
81 
82 
83 /*------------------------------------------------------------------------------*/
84 /* Enumerated Type Definition */
85 /*------------------------------------------------------------------------------*/
91 /* no define */
92  /* End of group BSP_UTILITIES_Exported_define */
96 
97 
98 /*------------------------------------------------------------------------------*/
99 /* Structure Definition */
100 /*------------------------------------------------------------------------------*/
105 /*----------------------------------*/
110 /*----------------------------------*/
111 typedef struct
112 {
113  uint32_t id;
115  uint32_t type;
118  uint32_t pulse_rising;
119  uint32_t pulse_trailing;
120  void (*handler)(uint32_t id);
122 
123 /*----------------------------------*/
127 /*----------------------------------*/
128 typedef struct
129 {
130  uint32_t reserved;
132 
133 /*----------------------------------*/
137 /*----------------------------------*/
138 typedef struct
139 {
142 } pulse_t; /* End of group BSP_UTILITIES_Exported_define */
146 
147 
148 /*------------------------------------------------------------------------------*/
149 /* Functions */
150 /*------------------------------------------------------------------------------*/
155 void pulse_initialize(pulse_t *p_instance);
156 void pulse_timer_finalize(pulse_t *p_instance);
157 void pulse_timer_start(pulse_t *p_instance);
158 void pulse_timer_stop(pulse_t *p_instance);
159 void pulse_timer_irq_handler(pulse_t *p_instance);
160 
161  /* End of group BSP_UTILITIES_Exported_functions */
165  /* End of group BSP_UTILITIES */
169  /* End of group Example */
173 
174 #ifdef __cplusplus
175 }
176 #endif /* __cplusplus */
177 #endif /* __BSP_PULSE_H */
178 
IRQn_Type irq
Definition: bsp_pulse.h:117
enum IRQn IRQn_Type
t32a_t * pulse_t32a
Definition: bsp_pulse.h:114
pulse_initial_setting_t init
Definition: bsp_pulse.h:140
void pulse_initialize(pulse_t *p_instance)
uint32_t pulse_rising
Definition: bsp_pulse.h:118
pulse_private_info_t info
Definition: bsp_pulse.h:141
void pulse_timer_irq_handler(pulse_t *p_instance)
uint32_t type
Definition: bsp_pulse.h:115
uint32_t id
Definition: bsp_pulse.h:113
uint32_t pulse_trailing
Definition: bsp_pulse.h:119
T32A handle structure definition.
Definition: txz_t32a.h:979
Private Information.
Definition: bsp_pulse.h:128
uint32_t reserved
Definition: bsp_pulse.h:130
Initial setting. User must be set.
Definition: bsp_pulse.h:111
void pulse_timer_stop(pulse_t *p_instance)
void pulse_timer_start(pulse_t *p_instance)
void pulse_timer_finalize(pulse_t *p_instance)
Timer Class.
Definition: bsp_pulse.h:138