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

ui2c_reg.h
Go to the documentation of this file.
1 /**************************************************************************/
9 #ifndef __UI2C_REG_H__
10 #define __UI2C_REG_H__
11
12 #if defined ( __CC_ARM )
13 #pragma anon_unions
14 #endif
15
26 typedef struct
27 {
28
29
820 __IO uint32_t CTL;
821 __I uint32_t RESERVE0[1];
824 __IO uint32_t BRGEN;
825 __I uint32_t RESERVE1[8];
828 __IO uint32_t LINECTL;
829 __O uint32_t TXDAT;
830 __I uint32_t RXDAT;
831 __I uint32_t RESERVE2[3];
834 __IO uint32_t DEVADDR0;
835 __IO uint32_t DEVADDR1;
836 __IO uint32_t ADDRMSK0;
837 __IO uint32_t ADDRMSK1;
838 __IO uint32_t WKCTL;
839 __IO uint32_t WKSTS;
840 __IO uint32_t PROTCTL;
841 __IO uint32_t PROTIEN;
842 __IO uint32_t PROTSTS;
843 __I uint32_t RESERVE3[8];
846 __IO uint32_t ADMAT;
847 __IO uint32_t TMCTL;
849 } UI2C_T;
850
856 #define UI2C_CTL_FUNMODE_Pos (0)
857 #define UI2C_CTL_FUNMODE_Msk (0x7ul << UI2C_CTL_FUNMODE_Pos)
859 #define UI2C_BRGEN_RCLKSEL_Pos (0)
860 #define UI2C_BRGEN_RCLKSEL_Msk (0x1ul << UI2C_BRGEN_RCLKSEL_Pos)
862 #define UI2C_BRGEN_PTCLKSEL_Pos (1)
863 #define UI2C_BRGEN_PTCLKSEL_Msk (0x1ul << UI2C_BRGEN_PTCLKSEL_Pos)
865 #define UI2C_BRGEN_SPCLKSEL_Pos (2)
866 #define UI2C_BRGEN_SPCLKSEL_Msk (0x3ul << UI2C_BRGEN_SPCLKSEL_Pos)
868 #define UI2C_BRGEN_TMCNTEN_Pos (4)
869 #define UI2C_BRGEN_TMCNTEN_Msk (0x1ul << UI2C_BRGEN_TMCNTEN_Pos)
871 #define UI2C_BRGEN_TMCNTSRC_Pos (5)
872 #define UI2C_BRGEN_TMCNTSRC_Msk (0x1ul << UI2C_BRGEN_TMCNTSRC_Pos)
874 #define UI2C_BRGEN_PDSCNT_Pos (8)
875 #define UI2C_BRGEN_PDSCNT_Msk (0x3ul << UI2C_BRGEN_PDSCNT_Pos)
877 #define UI2C_BRGEN_DSCNT_Pos (10)
878 #define UI2C_BRGEN_DSCNT_Msk (0x1ful << UI2C_BRGEN_DSCNT_Pos)
880 #define UI2C_BRGEN_CLKDIV_Pos (16)
881 #define UI2C_BRGEN_CLKDIV_Msk (0x3fful << UI2C_BRGEN_CLKDIV_Pos)
883 #define UI2C_LINECTL_LSB_Pos (0)
884 #define UI2C_LINECTL_LSB_Msk (0x1ul << UI2C_LINECTL_LSB_Pos)
886 #define UI2C_LINECTL_DWIDTH_Pos (8)
887 #define UI2C_LINECTL_DWIDTH_Msk (0xful << UI2C_LINECTL_DWIDTH_Pos)
889 #define UI2C_TXDAT_TXDAT_Pos (0)
890 #define UI2C_TXDAT_TXDAT_Msk (0xfffful << UI2C_TXDAT_TXDAT_Pos)
892 #define UI2C_RXDAT_RXDAT_Pos (0)
893 #define UI2C_RXDAT_RXDAT_Msk (0xfffful << UI2C_RXDAT_RXDAT_Pos)
895 #define UI2C_DEVADDR0_DEVADDR_Pos (0)
896 #define UI2C_DEVADDR0_DEVADDR_Msk (0x3fful << UI2C_DEVADDR0_DEVADDR_Pos)
898 #define UI2C_DEVADDR1_DEVADDR_Pos (0)
899 #define UI2C_DEVADDR1_DEVADDR_Msk (0x3fful << UI2C_DEVADDR1_DEVADDR_Pos)
901 #define UI2C_ADDRMSK0_ADDRMSK_Pos (0)
902 #define UI2C_ADDRMSK0_ADDRMSK_Msk (0x3fful << UI2C_ADDRMSK0_ADDRMSK_Pos)
904 #define UI2C_ADDRMSK1_ADDRMSK_Pos (0)
905 #define UI2C_ADDRMSK1_ADDRMSK_Msk (0x3fful << UI2C_ADDRMSK1_ADDRMSK_Pos)
907 #define UI2C_WKCTL_WKEN_Pos (0)
908 #define UI2C_WKCTL_WKEN_Msk (0x1ul << UI2C_WKCTL_WKEN_Pos)
910 #define UI2C_WKCTL_WKADDREN_Pos (1)
911 #define UI2C_WKCTL_WKADDREN_Msk (0x1ul << UI2C_WKCTL_WKADDREN_Pos)
913 #define UI2C_WKSTS_WKF_Pos (0)
914 #define UI2C_WKSTS_WKF_Msk (0x1ul << UI2C_WKSTS_WKF_Pos)
916 #define UI2C_PROTCTL_GCFUNC_Pos (0)
917 #define UI2C_PROTCTL_GCFUNC_Msk (0x1ul << UI2C_PROTCTL_GCFUNC_Pos)
919 #define UI2C_PROTCTL_AA_Pos (1)
920 #define UI2C_PROTCTL_AA_Msk (0x1ul << UI2C_PROTCTL_AA_Pos)
922 #define UI2C_PROTCTL_STO_Pos (2)
923 #define UI2C_PROTCTL_STO_Msk (0x1ul << UI2C_PROTCTL_STO_Pos)
925 #define UI2C_PROTCTL_STA_Pos (3)
926 #define UI2C_PROTCTL_STA_Msk (0x1ul << UI2C_PROTCTL_STA_Pos)
928 #define UI2C_PROTCTL_ADDR10EN_Pos (4)
929 #define UI2C_PROTCTL_ADDR10EN_Msk (0x1ul << UI2C_PROTCTL_ADDR10EN_Pos)
931 #define UI2C_PROTCTL_PTRG_Pos (5)
932 #define UI2C_PROTCTL_PTRG_Msk (0x1ul << UI2C_PROTCTL_PTRG_Pos)
934 #define UI2C_PROTCTL_SCLOUTEN_Pos (8)
935 #define UI2C_PROTCTL_SCLOUTEN_Msk (0x1ul << UI2C_PROTCTL_SCLOUTEN_Pos)
937 #define UI2C_PROTCTL_MONEN_Pos (9)
938 #define UI2C_PROTCTL_MONEN_Msk (0x1ul << UI2C_PROTCTL_MONEN_Pos)
940 #define UI2C_PROTCTL_TOCNT_Pos (16)
941 #define UI2C_PROTCTL_TOCNT_Msk (0x3fful << UI2C_PROTCTL_TOCNT_Pos)
943 #define UI2C_PROTCTL_PROTEN_Pos (31)
944 #define UI2C_PROTCTL_PROTEN_Msk (0x1ul << UI2C_PROTCTL_PROTEN_Pos)
946 #define UI2C_PROTIEN_TOIEN_Pos (0)
947 #define UI2C_PROTIEN_TOIEN_Msk (0x1ul << UI2C_PROTIEN_TOIEN_Pos)
949 #define UI2C_PROTIEN_STARIEN_Pos (1)
950 #define UI2C_PROTIEN_STARIEN_Msk (0x1ul << UI2C_PROTIEN_STARIEN_Pos)
952 #define UI2C_PROTIEN_STORIEN_Pos (2)
953 #define UI2C_PROTIEN_STORIEN_Msk (0x1ul << UI2C_PROTIEN_STORIEN_Pos)
955 #define UI2C_PROTIEN_NACKIEN_Pos (3)
956 #define UI2C_PROTIEN_NACKIEN_Msk (0x1ul << UI2C_PROTIEN_NACKIEN_Pos)
958 #define UI2C_PROTIEN_ARBLOIEN_Pos (4)
959 #define UI2C_PROTIEN_ARBLOIEN_Msk (0x1ul << UI2C_PROTIEN_ARBLOIEN_Pos)
961 #define UI2C_PROTIEN_ERRIEN_Pos (5)
962 #define UI2C_PROTIEN_ERRIEN_Msk (0x1ul << UI2C_PROTIEN_ERRIEN_Pos)
964 #define UI2C_PROTIEN_ACKIEN_Pos (6)
965 #define UI2C_PROTIEN_ACKIEN_Msk (0x1ul << UI2C_PROTIEN_ACKIEN_Pos)
967 #define UI2C_PROTSTS_TOIF_Pos (5)
968 #define UI2C_PROTSTS_TOIF_Msk (0x1ul << UI2C_PROTSTS_TOIF_Pos)
970 #define UI2C_PROTSTS_ONBUSY_Pos (6)
971 #define UI2C_PROTSTS_ONBUSY_Msk (0x1ul << UI2C_PROTSTS_ONBUSY_Pos)
973 #define UI2C_PROTSTS_STARIF_Pos (8)
974 #define UI2C_PROTSTS_STARIF_Msk (0x1ul << UI2C_PROTSTS_STARIF_Pos)
976 #define UI2C_PROTSTS_STORIF_Pos (9)
977 #define UI2C_PROTSTS_STORIF_Msk (0x1ul << UI2C_PROTSTS_STORIF_Pos)
979 #define UI2C_PROTSTS_NACKIF_Pos (10)
980 #define UI2C_PROTSTS_NACKIF_Msk (0x1ul << UI2C_PROTSTS_NACKIF_Pos)
982 #define UI2C_PROTSTS_ARBLOIF_Pos (11)
983 #define UI2C_PROTSTS_ARBLOIF_Msk (0x1ul << UI2C_PROTSTS_ARBLOIF_Pos)
985 #define UI2C_PROTSTS_ERRIF_Pos (12)
986 #define UI2C_PROTSTS_ERRIF_Msk (0x1ul << UI2C_PROTSTS_ERRIF_Pos)
988 #define UI2C_PROTSTS_ACKIF_Pos (13)
989 #define UI2C_PROTSTS_ACKIF_Msk (0x1ul << UI2C_PROTSTS_ACKIF_Pos)
991 #define UI2C_PROTSTS_SLASEL_Pos (14)
992 #define UI2C_PROTSTS_SLASEL_Msk (0x1ul << UI2C_PROTSTS_SLASEL_Pos)
994 #define UI2C_PROTSTS_SLAREAD_Pos (15)
995 #define UI2C_PROTSTS_SLAREAD_Msk (0x1ul << UI2C_PROTSTS_SLAREAD_Pos)
997 #define UI2C_PROTSTS_WKAKDONE_Pos (16)
998 #define UI2C_PROTSTS_WKAKDONE_Msk (0x1ul << UI2C_PROTSTS_WKAKDONE_Pos)
1000 #define UI2C_PROTSTS_WRSTSWK_Pos (17)
1001 #define UI2C_PROTSTS_WRSTSWK_Msk (0x1ul << UI2C_PROTSTS_WRSTSWK_Pos)
1003 #define UI2C_PROTSTS_BUSHANG_Pos (18)
1004 #define UI2C_PROTSTS_BUSHANG_Msk (0x1ul << UI2C_PROTSTS_BUSHANG_Pos)
1006 #define UI2C_PROTSTS_ERRARBLO_Pos (19)
1007 #define UI2C_PROTSTS_ERRARBLO_Msk (0x1ul << UI2C_PROTSTS_ERRARBLO_Pos)
1009 #define UI2C_ADMAT_ADMAT0_Pos (0)
1010 #define UI2C_ADMAT_ADMAT0_Msk (0x1ul << UI2C_ADMAT_ADMAT0_Pos)
1012 #define UI2C_ADMAT_ADMAT1_Pos (1)
1013 #define UI2C_ADMAT_ADMAT1_Msk (0x1ul << UI2C_ADMAT_ADMAT1_Pos)
1015 #define UI2C_TMCTL_STCTL_Pos (0)
1016 #define UI2C_TMCTL_STCTL_Msk (0x1fful << UI2C_TMCTL_STCTL_Pos)
1018 #define UI2C_TMCTL_HTCTL_Pos (16)
1019 #define UI2C_TMCTL_HTCTL_Msk (0x1fful << UI2C_TMCTL_HTCTL_Pos) /* UI2C_CONST */
1022 /* end of UI2C register group */ /* end of REGISTER group */
1024
1025 #if defined ( __CC_ARM )
1026 #pragma no_anon_unions
1027 #endif
1028
1029 #endif /* __UI2C_REG_H__ */
UI2C_T::CTL
__IO uint32_t CTL
Definition: ui2c_reg.h:820
UI2C_T::TXDAT
__O uint32_t TXDAT
Definition: ui2c_reg.h:829
UI2C_T::BRGEN
__IO uint32_t BRGEN
Definition: ui2c_reg.h:824
UI2C_T::LINECTL
__IO uint32_t LINECTL
Definition: ui2c_reg.h:828
UI2C_T::WKCTL
__IO uint32_t WKCTL
Definition: ui2c_reg.h:838
UI2C_T::WKSTS
__IO uint32_t WKSTS
Definition: ui2c_reg.h:839
UI2C_T
Definition: ui2c_reg.h:26
UI2C_T::RXDAT
__I uint32_t RXDAT
Definition: ui2c_reg.h:830
UI2C_T::PROTCTL
__IO uint32_t PROTCTL
Definition: ui2c_reg.h:840
UI2C_T::DEVADDR1
__IO uint32_t DEVADDR1
Definition: ui2c_reg.h:835
UI2C_T::PROTSTS
__IO uint32_t PROTSTS
Definition: ui2c_reg.h:842
UI2C_T::ADDRMSK0
__IO uint32_t ADDRMSK0
Definition: ui2c_reg.h:836
UI2C_T::PROTIEN
__IO uint32_t PROTIEN
Definition: ui2c_reg.h:841
UI2C_T::ADMAT
__IO uint32_t ADMAT
Definition: ui2c_reg.h:846
UI2C_T::TMCTL
__IO uint32_t TMCTL
Definition: ui2c_reg.h:847
UI2C_T::DEVADDR0
__IO uint32_t DEVADDR0
Definition: ui2c_reg.h:834
UI2C_T::ADDRMSK1
__IO uint32_t ADDRMSK1
Definition: ui2c_reg.h:837