TMPM4G9  V1.0.0.0
isd.h
Go to the documentation of this file.
1 
14 #ifdef __cplusplus
15  extern "C" {
16 #endif
17 
18 /*------------------------------------------------------------------------------*/
19 /* Includes */
20 /*------------------------------------------------------------------------------*/
21 #include "txz_sample_def.h"
22 
32 /*------------------------------------------------------------------------------*/
33 /* Macro Function */
34 /*------------------------------------------------------------------------------*/
40 /* no define */
41  /* End of group ISD_Exported_macro */
45 
46 
47 /*------------------------------------------------------------------------------*/
48 /* Configuration */
49 /*------------------------------------------------------------------------------*/
60 #define ISD_DIV_X1 ((uint32_t)0x00000000)
61 #define ISD_DIV_X2 ((uint32_t)0x00000001)
62 #define ISD_DIV_X4 ((uint32_t)0x00000002)
63 #define ISD_DIV_X8 ((uint32_t)0x00000003) /* End of group ISD_Div */
67 
73 #define ISD_SC_FS ((uint32_t)0x00000000)
74 #define ISD_SC_TBXOUT ((uint32_t)0x00000001) /* End of group ISD_Sc */
78 
84 #define ISD_MS_MASTER ((uint32_t)0x00000000)
85 #define ISD_MS_SLAVE ((uint32_t)0x00000001) /* End of group ISD_Sc */
89 
95 #define ISD_OP_LOW ((uint32_t)0x00000000)
96 #define ISD_OP_HIGH ((uint32_t)0x00000001) /* End of group ISD_Op */
100 
106 #define ISD_Inx_DISABLE ((uint32_t)0x00000000)
107 #define ISD_Inx_LOW ((uint32_t)0x00000001)
108 #define ISD_Inx_HIGH ((uint32_t)0x00000002)
109 #define ISD_Inx_LOW_HIGH ((uint32_t)0x00000003)
110 #define ISD_Inx_HIGH_LOW ((uint32_t)0x00000004)
111 #define ISD_Inx_DIFFERENT ((uint32_t)0x00000005) /* End of group ISD_Inx */
115 
121 #define ISD_INTEN_DISABLE ((uint32_t)0x00000000)
122 #define ISD_INTEN_ENABLE ((uint32_t)0x00000001) /* End of group ISD_Op */
126  /* End of group ISD_Exported_define */
130 
131 
132 /*------------------------------------------------------------------------------*/
133 /* Macro Definition */
134 /*------------------------------------------------------------------------------*/
140 /* no define */
141  /* End of group ISD_Exported_define */
145 
146 
147 /*------------------------------------------------------------------------------*/
148 /* Enumerated Type Definition */
149 /*------------------------------------------------------------------------------*/
155 /* no define */
156  /* End of group ISD_Exported_define */
160 
161 
162 
163 /*------------------------------------------------------------------------------*/
164 /* Structure Definition */
165 /*------------------------------------------------------------------------------*/
171 /*----------------------------------*/
175 /*----------------------------------*/
176 typedef struct
177 {
178  uint32_t div;
179  uint32_t sc;
180  uint32_t ms;
181  uint32_t op;
182  uint32_t t2;
183  uint32_t t1;
184  uint32_t t0;
185  uint32_t i3m;
186  uint32_t i2m;
187  uint32_t i1m;
188  uint32_t i0m;
189  uint32_t inten;
191 
192 typedef struct
193 {
196 } isd_t;
197  /* End of group ISD_Exported_typedef */
201 
202 /*------------------------------------------------------------------------------*/
203 /* Private Member */
204 /*------------------------------------------------------------------------------*/
210 /* no define */
211  /* End of group ISD_Exported_variables */
215 
216 
217 /*------------------------------------------------------------------------------*/
218 /* Public Function */
219 /*------------------------------------------------------------------------------*/
225 void ISD_Initialize(isd_t *p_obj);
226 void ISD_Start(isd_t *p_obj);
227 void ISD_Stop(isd_t *p_obj);
228 void ISD_Finalize(isd_t *p_obj);
229 uint32_t ISD_Status_Read(isd_t *p_obj);
230  /* End of group ISD_Exported_functions */
234  /* End of group ISD */
238  /* End of group Example */
242 
243 #ifdef __cplusplus
244 }
245 #endif /* __cplusplus */
uint32_t t0
Definition: isd.h:184
uint32_t t2
Definition: isd.h:182
TSB_ISD_TypeDef * p_instance
Definition: isd.h:194
Initial setting structure definenition.
Definition: isd.h:176
uint32_t ms
Definition: isd.h:180
uint32_t ISD_Status_Read(isd_t *p_obj)
ISD_Status_Read.
Definition: isd.c:516
uint32_t op
Definition: isd.h:181
uint32_t i2m
Definition: isd.h:186
uint32_t sc
Definition: isd.h:179
Definition: isd.h:192
void ISD_Finalize(isd_t *p_obj)
Finalize ISD.
Definition: isd.c:493
uint32_t i3m
Definition: isd.h:185
uint32_t t1
Definition: isd.h:183
uint32_t i1m
Definition: isd.h:187
void ISD_Stop(isd_t *p_obj)
Stop ISD.
Definition: isd.c:473
uint32_t i0m
Definition: isd.h:188
void ISD_Initialize(isd_t *p_obj)
Initialize ISD.
Definition: isd.c:411
Definition: TMPM4G6.h:1501
uint32_t inten
Definition: isd.h:189
void ISD_Start(isd_t *p_obj)
Start ISD.
Definition: isd.c:453
isd_initial_setting_t init
Definition: isd.h:195
uint32_t div
Definition: isd.h:178