| M480 BSP V3.05.001 The Board Support Package for M480 Series

dac_reg.h
Go to the documentation of this file.
1 /**************************************************************************/
9 #ifndef __DAC_REG_H__
10 #define __DAC_REG_H__
11
12 #if defined ( __CC_ARM )
13 #pragma anon_unions
14 #endif
15
26 typedef struct
27 {
28
29
273 __IO uint32_t CTL;
274 __IO uint32_t SWTRG;
275 __IO uint32_t DAT;
276 __I uint32_t DATOUT;
277 __IO uint32_t STATUS;
278 __IO uint32_t TCTL;
280 } DAC_T;
281
287 #define DAC_CTL_DACEN_Pos (0)
288 #define DAC_CTL_DACEN_Msk (0x1ul << DAC_CTL_DACEN_Pos)
290 #define DAC_CTL_DACIEN_Pos (1)
291 #define DAC_CTL_DACIEN_Msk (0x1ul << DAC_CTL_DACIEN_Pos)
293 #define DAC_CTL_DMAEN_Pos (2)
294 #define DAC_CTL_DMAEN_Msk (0x1ul << DAC_CTL_DMAEN_Pos)
296 #define DAC_CTL_DMAURIEN_Pos (3)
297 #define DAC_CTL_DMAURIEN_Msk (0x1ul << DAC_CTL_DMAURIEN_Pos)
299 #define DAC_CTL_TRGEN_Pos (4)
300 #define DAC_CTL_TRGEN_Msk (0x1ul << DAC_CTL_TRGEN_Pos)
302 #define DAC_CTL_TRGSEL_Pos (5)
303 #define DAC_CTL_TRGSEL_Msk (0x7ul << DAC_CTL_TRGSEL_Pos)
305 #define DAC_CTL_BYPASS_Pos (8)
306 #define DAC_CTL_BYPASS_Msk (0x1ul << DAC_CTL_BYPASS_Pos)
308 #define DAC_CTL_LALIGN_Pos (10)
309 #define DAC_CTL_LALIGN_Msk (0x1ul << DAC_CTL_LALIGN_Pos)
311 #define DAC_CTL_ETRGSEL_Pos (12)
312 #define DAC_CTL_ETRGSEL_Msk (0x3ul << DAC_CTL_ETRGSEL_Pos)
314 #define DAC_CTL_BWSEL_Pos (14)
315 #define DAC_CTL_BWSEL_Msk (0x3ul << DAC_CTL_BWSEL_Pos)
317 #define DAC_CTL_GRPEN_Pos (16)
318 #define DAC_CTL_GRPEN_Msk (0x1ul << DAC_CTL_GRPEN_Pos)
320 #define DAC_SWTRG_SWTRG_Pos (0)
321 #define DAC_SWTRG_SWTRG_Msk (0x1ul << DAC_SWTRG_SWTRG_Pos)
323 #define DAC_DAT_DACDAT_Pos (0)
324 #define DAC_DAT_DACDAT_Msk (0xfffful << DAC_DAT_DACDAT_Pos)
326 #define DAC_DATOUT_DATOUT_Pos (0)
327 #define DAC_DATOUT_DATOUT_Msk (0xffful << DAC_DATOUT_DATOUT_Pos)
329 #define DAC_STATUS_FINISH_Pos (0)
330 #define DAC_STATUS_FINISH_Msk (0x1ul << DAC_STATUS_FINISH_Pos)
332 #define DAC_STATUS_DMAUDR_Pos (1)
333 #define DAC_STATUS_DMAUDR_Msk (0x1ul << DAC_STATUS_DMAUDR_Pos)
335 #define DAC_STATUS_BUSY_Pos (8)
336 #define DAC_STATUS_BUSY_Msk (0x1ul << DAC_STATUS_BUSY_Pos)
338 #define DAC_TCTL_SETTLET_Pos (0)
339 #define DAC_TCTL_SETTLET_Msk (0x3fful << DAC_TCTL_SETTLET_Pos) /* DAC_CONST */
342 /* end of DAC register group */ /* end of REGISTER group */
344
345 #if defined ( __CC_ARM )
346 #pragma no_anon_unions
347 #endif
348
349 #endif /* __DAC_REG_H__ */
DAC_T::DATOUT
__I uint32_t DATOUT
Definition: dac_reg.h:276
DAC_T
Definition: dac_reg.h:26
DAC_T::STATUS
__IO uint32_t STATUS
Definition: dac_reg.h:277
DAC_T::SWTRG
__IO uint32_t SWTRG
Definition: dac_reg.h:274
DAC_T::DAT
__IO uint32_t DAT
Definition: dac_reg.h:275
DAC_T::TCTL
__IO uint32_t TCTL
Definition: dac_reg.h:278
DAC_T::CTL
__IO uint32_t CTL
Definition: dac_reg.h:273