------------- Registers -- -------------
ADC_Periph : aliased ADC_Peripheral
with Import, Address => ADC_Base;
type ADC_Peripheral is record
CS : aliased CS_Register;
RESULT : aliased RESULT_Register;
FCS : aliased FCS_Register;
FIFO : aliased FIFO_Register;
DIV : aliased DIV_Register;
INTR : aliased INTR_Register;
INTE : aliased INTE_Register;
INTF : aliased INTF_Register;
INTS : aliased INTS_Register;
end record
with Volatile;
subtype CS_AINSEL_Field is HAL.UInt3;
type CS_Register is record
EN : Boolean := False;
TS_EN : Boolean := False;
START_ONCE : Boolean := False;
START_MANY : Boolean := False;
Reserved_4_7 : HAL.UInt4 := 16#0#;
READY : Boolean := False;
ERR : Boolean := False;
ERR_STICKY : Boolean := False;
Reserved_11_11 : HAL.Bit := 16#0#;
AINSEL : CS_AINSEL_Field := 16#0#;
Reserved_15_15 : HAL.Bit := 16#0#;
RROBIN : CS_RROBIN_Field := 16#0#;
Reserved_21_31 : HAL.UInt11 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype CS_RROBIN_Field is HAL.UInt5;
subtype DIV_FRAC_Field is HAL.UInt8;
subtype DIV_INT_Field is HAL.UInt16;
type DIV_Register is record
FRAC : DIV_FRAC_Field := 16#0#;
INT : DIV_INT_Field := 16#0#;
Reserved_24_31 : HAL.UInt8 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype FCS_LEVEL_Field is HAL.UInt4;
type FCS_Register is record
EN : Boolean := False;
SHIFT : Boolean := False;
ERR : Boolean := False;
DREQ_EN : Boolean := False;
Reserved_4_7 : HAL.UInt4 := 16#0#;
EMPTY : Boolean := False;
FULL : Boolean := False;
UNDER : Boolean := False;
OVER : Boolean := False;
Reserved_12_15 : HAL.UInt4 := 16#0#;
LEVEL : FCS_LEVEL_Field := 16#0#;
Reserved_20_23 : HAL.UInt4 := 16#0#;
THRESH : FCS_THRESH_Field := 16#0#;
Reserved_28_31 : HAL.UInt4 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype FCS_THRESH_Field is HAL.UInt4;
type FIFO_Register is record
VAL : FIFO_VAL_Field;
Reserved_12_14 : HAL.UInt3;
ERR : Boolean;
Reserved_16_31 : HAL.UInt16;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype FIFO_VAL_Field is HAL.UInt12;
type INTE_Register is record
FIFO : Boolean := False;
Reserved_1_31 : HAL.UInt31 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type INTF_Register is record
FIFO : Boolean := False;
Reserved_1_31 : HAL.UInt31 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type INTR_Register is record
FIFO : Boolean;
Reserved_1_31 : HAL.UInt31;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type INTS_Register is record
FIFO : Boolean;
Reserved_1_31 : HAL.UInt31;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type RESULT_Register is record
RESULT : RESULT_RESULT_Field;
Reserved_12_31 : HAL.UInt20;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype RESULT_RESULT_Field is HAL.UInt12;