HWA
Bare metal programming with style
ica_1.h
Go to the documentation of this file.
1 
2 /* This file is part of the HWA project.
3  * Copyright (c) 2012,2015 Christophe Duparquet.
4  * All rights reserved. Read LICENSE.TXT for details.
5  */
6 
28 #define hw_class__ica
29 
43 #define HW_BITS__ica , _hw_bn_ica
44 
45 #define _hw_bn_ica(...) 16
46 
47 
64 #if !defined __ASSEMBLER__
65 
66 /* HWA context
67  */
68 typedef struct {
69 
70  /* hwa_r16_t reg ; */
71 
72  /* Registers used for high-level configuration
73  */
74  struct {
75  uint8_t input, edge, filter ;
76  } config ;
77 
78  /* Registers used for configuration resolution
79  */
80  struct {
81  uint8_t acic, ices, icnc ;
82  } solved ;
83 
84 } hwa_ica_t ;
85 
86 #endif