62 #include "Functional_Block_Base.h"
445 U8 *u8_Receive_Byte_1,
U8 *u8_Receive_Byte_2,
U8 *u8_Receive_Byte_3,
U8 *u8_Receive_Byte_4 );
int BOOL
Boolean datatype definition.
Definition: Defines.h:124
unsigned char U8
Binary 8-Bit unsigned integer datatype defenition.
Definition: Defines.h:183
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
unsigned long U32
Binary 32-Bit unsigned integer datatype defenition.
Definition: Defines.h:203
unsigned short U16
Binary 16-Bit unsigned integer datatype defenition.
Definition: Defines.h:193
Function block output connector class.
Definition: Block_Output_Connector.h:59
Digital I/O P019.14 board class.
Definition: P019_14_KG3_DIO2.h:70
BOOL Transmit_Bytes(U8 u8_Transmit_Byte_1, U8 u8_Transmit_Byte_2, U8 u8_Transmit_Byte_3, U8 u8_Transmit_Byte_4)
Transmit data to ATiny13A.
Definition: P019_14_KG3_DIO2.cpp:1265
U16 u16_ADC_OV
Overvoltage measured values.
Definition: P019_14_KG3_DIO2.h:770
U32 Get_Module_ID()
Return module ID.
BOOL Chip_Disconnect()
Connect to the chip in programming mode.
Definition: P019_14_KG3_DIO2.cpp:1547
U16 u16_ADC_OV_Hyst
Hyst values for overvoltage calibration.
Definition: P019_14_KG3_DIO2.h:761
volatile TStatus_Register Status_Register
Status register.
Definition: P019_14_KG3_DIO2.h:710
TGlobal_FSM_State
< FSM state definition
Definition: P019_14_KG3_DIO2.h:235
@ enum_Programm_Production_Data
Definition: P019_14_KG3_DIO2.h:257
@ enum_Test_Signature
Definition: P019_14_KG3_DIO2.h:239
@ enum_Startup_Voltage_Calibration
Definition: P019_14_KG3_DIO2.h:247
@ enum_Verify_Programm_Production_Firmware
Definition: P019_14_KG3_DIO2.h:258
@ enum_Verify_Erase_For_Production_Programming
Definition: P019_14_KG3_DIO2.h:256
@ enum_Connect_For_Measurement_Programming
Definition: P019_14_KG3_DIO2.h:238
@ enum_Idle
Definition: P019_14_KG3_DIO2.h:237
@ enum_Done
Definition: P019_14_KG3_DIO2.h:262
@ enum_End_Calibration
Definition: P019_14_KG3_DIO2.h:250
@ enum_Disconnect_After_Production_Programming
Definition: P019_14_KG3_DIO2.h:260
@ enum_Erase_For_Measurement_Programming
Definition: P019_14_KG3_DIO2.h:240
@ enum_Connect_For_Production_Programming
Definition: P019_14_KG3_DIO2.h:254
@ enum_Programm_Measurement_Firmware
Definition: P019_14_KG3_DIO2.h:242
@ enum_Overvoltage_Limit_Calibration
Definition: P019_14_KG3_DIO2.h:249
@ enum_Disconnect_After_Measurement_Programming
Definition: P019_14_KG3_DIO2.h:244
@ enum_Undervoltage_Limit_Calibration
Definition: P019_14_KG3_DIO2.h:248
@ enum_Check_Calibration_Data_Integrity
Definition: P019_14_KG3_DIO2.h:251
@ enum_Verify_Erase_For_Measurement_Programming
Definition: P019_14_KG3_DIO2.h:241
@ enum_Error
Definition: P019_14_KG3_DIO2.h:263
@ enum_Programm_Fuses
Definition: P019_14_KG3_DIO2.h:259
@ enum_Verify_Programm_Measurement_Firmware
Definition: P019_14_KG3_DIO2.h:243
@ enum_Erase_For_Production_Programming
Definition: P019_14_KG3_DIO2.h:255
VOID Init_P009_05_6V()
Init parameters for 6 V version.
Definition: P019_14_KG3_DIO2.cpp:2508
BOOL Read_Fuse_Bytes()
Read fuse bytes from the chip.
Definition: P019_14_KG3_DIO2.cpp:1784
U8 u8_Data_Buffer[512]
Firmware data.
Definition: P019_14_KG3_DIO2.h:713
virtual VOID Execute()
Block execution method.
Definition: P019_14_KG3_DIO2.cpp:303
BOOL Wait_Busy_Bit()
Wait while busy bit is set low.
Definition: P019_14_KG3_DIO2.cpp:1389
TGlobal_FSM_State FSM_State
Contain state for FSM.
Definition: P019_14_KG3_DIO2.h:773
U32 u32_Manufacturer_Data_Production_Factory_ID
Manufacturer data factory ID.
Definition: P019_14_KG3_DIO2.h:725
TBlock_Input_Connector object_u32_Device_ID
Definition: P019_14_KG3_DIO2.h:208
U16 u16_ADC_UV_Hyst
Hyst values for undervoltage calibration.
Definition: P019_14_KG3_DIO2.h:758
BOOL Write_Fuse_Bytes(U8 u8_Low_Bute, U8 u8_High_Bute)
Write fuse bytes to the chip.
Definition: P019_14_KG3_DIO2.cpp:1895
virtual VOID Send_Information(TProtocol_Base *object_Protocol)
Block execution method.
Definition: P019_14_KG3_DIO2.cpp:1046
BOOL Chip_Programming(const U8 *u8_Programm_Data, const U32 u32_Length)
Write firmware in the chip.
Definition: P019_14_KG3_DIO2.cpp:1618
BOOL Write_Lock_Byte(U8 u8_Lock_Byte)
Write data to lock byte.
Definition: P019_14_KG3_DIO2.cpp:2297
U16 u16_ADC_UV_Min
Min undervoltage voltage value.
Definition: P019_14_KG3_DIO2.h:743
U16 u16_DAC_OV_Setpoint
DAC Setpoints for overvoltage calibration.
Definition: P019_14_KG3_DIO2.h:734
U16 u16_ADC_OV_Min
Min overvoltage voltage value.
Definition: P019_14_KG3_DIO2.h:749
TBlock_Input_Connector object_u8_Command
Definition: P019_14_KG3_DIO2.h:207
VOID Map(TP019_14_KG3_DIO2_Registers *struct_Registers_Base_Address)
Map method.
Definition: P019_14_KG3_DIO2.cpp:202
~TP019_14_KG3_DIO2_T1()
Class destructor method.
Definition: P019_14_KG3_DIO2.cpp:194
virtual VOID Init()
Block initialization method.
Definition: P019_14_KG3_DIO2.cpp:217
U16 u16_ADC_UV_Max
Max undervoltage voltage value.
Definition: P019_14_KG3_DIO2.h:746
BOOL Read_Signature_Byte()
Read signature bytes from the chip.
Definition: P019_14_KG3_DIO2.cpp:1928
U16 u16_ADC_SV_Max
Max startup voltage value.
Definition: P019_14_KG3_DIO2.h:740
volatile TP019_14_KG3_DIO2_Registers * struct_Registers
Pointer to the memory area in FPGA address space.
Definition: P019_14_KG3_DIO2.h:707
BOOL Read_Lock_Byte()
Read data from the lock byte.
Definition: P019_14_KG3_DIO2.cpp:2253
U16 u16_ADC_UV
Undervoltage measured values.
Definition: P019_14_KG3_DIO2.h:767
VOID Chip_Reset()
Chip reset.
Definition: P019_14_KG3_DIO2.cpp:2481
U16 u16_DAC_UV_Setpoint
DAC Setpoints for undervoltage calibration.
Definition: P019_14_KG3_DIO2.h:731
BOOL Collect_Measured_Data(U8 *u8_Value_High, U8 *u8_Value_Low)
Receiving data from ADC.
Definition: P019_14_KG3_DIO2.cpp:2340
BOOL Processing_Measured_Data(U16 u16_Voltage_Setpoint, U8 u8_Cycles_Number, U16 *u16_Measured_Value)
Processing data reciving from ADC.
Definition: P019_14_KG3_DIO2.cpp:2383
U32 u32_Manufacturer_Data_Device_ID
Manufacturer data Device ID.
Definition: P019_14_KG3_DIO2.h:719
U16 u16_ADC_OV_Max
Max overvoltage voltage value.
Definition: P019_14_KG3_DIO2.h:752
VOID Init_P009_05_24V()
Init parameters for 24 V version.
Definition: P019_14_KG3_DIO2.cpp:2556
U16 u16_Measured_Value
Voltage value.
Definition: P019_14_KG3_DIO2.h:716
U16 u16_ADC_SV
Startup measured values.
Definition: P019_14_KG3_DIO2.h:764
TBlock_Input_Connector object_bool_Start
Definition: P019_14_KG3_DIO2.h:206
VOID Init_P009_05_12V()
Init parameters for 12 V version.
Definition: P019_14_KG3_DIO2.cpp:2532
BOOL Chip_Connect()
Connect to the chip in programming mode.
Definition: P019_14_KG3_DIO2.cpp:1442
U16 u16_ADC_SV_Hyst
Hyst values for startup calibration.
Definition: P019_14_KG3_DIO2.h:755
BOOL Read_Verify(const U8 *u8_Programing_Data, U16 u16_Length)
Read data from the chip for validate.
Definition: P019_14_KG3_DIO2.cpp:2040
U16 u16_ADC_SV_Min
Min startup voltage value.
Definition: P019_14_KG3_DIO2.h:737
TP019_14_KG3_DIO2_T1()
Class constructor method.
Definition: P019_14_KG3_DIO2.cpp:162
U16 u16_DAC_SV_Setpoint
DAC Setpoints for startup calibration.
Definition: P019_14_KG3_DIO2.h:728
U32 u32_Manufacturer_Data_Serial_Number
Manufacturer serial number.
Definition: P019_14_KG3_DIO2.h:722
BOOL Verify_Erase()
Read data from the chip for validate and check that memory is empty.
Definition: P019_14_KG3_DIO2.cpp:2145
BOOL Exchange_Bytes(U8 u8_Transmit_Byte_1, U8 u8_Transmit_Byte_2, U8 u8_Transmit_Byte_3, U8 u8_Transmit_Byte_4, U8 *u8_Receive_Byte_1, U8 *u8_Receive_Byte_2, U8 *u8_Receive_Byte_3, U8 *u8_Receive_Byte_4)
Exchange data with ATiny13A chip.
Definition: P019_14_KG3_DIO2.cpp:1071
TBlock_Output_Connector object_bool_Done
Definition: P019_14_KG3_DIO2.h:214
BOOL Chip_Erase()
Erase all blocks of the chip.
Definition: P019_14_KG3_DIO2.cpp:1575
TBlock_Output_Connector object_bool_Error
Definition: P019_14_KG3_DIO2.h:215
Definition: Protocol_Base.h:57
Definition: P019_14_KG3_DIO2.h:84
U16 u16_Control_Register_Reset
0x04 : Control register bit reset register
Definition: P019_14_KG3_DIO2.h:96
U16 u16_Control_Register_Set
0x03 : Control register bit set register
Definition: P019_14_KG3_DIO2.h:95
U16 u16_Reserve_10
0x0A : Reserved
Definition: P019_14_KG3_DIO2.h:104
U16 u16_Reserve_12
0x0C : Reserved
Definition: P019_14_KG3_DIO2.h:106
U16 u16_Reserve_11
0x0B : Reserved
Definition: P019_14_KG3_DIO2.h:105
U16 u16_Voltage_Set_Point
0x07 : Voltage control register
Definition: P019_14_KG3_DIO2.h:101
U16 u16_SPI_Clock_Divider
0x08 : SPI clock divider register
Definition: P019_14_KG3_DIO2.h:102
U16 u16_Data_Register
0x06 : SPI data read and write register
Definition: P019_14_KG3_DIO2.h:99
U16 u16_Unit_ID_L
0x00 : Module identification register
Definition: P019_14_KG3_DIO2.h:87
U16 u16_Control_Register
0x02 : Control register
Definition: P019_14_KG3_DIO2.h:92
U16 u16_Reserve_13
0x0D : Reserved
Definition: P019_14_KG3_DIO2.h:107
U16 u16_Status_Register
0x02 : Status register
Definition: P019_14_KG3_DIO2.h:93
U16 u16_Unit_ID_H
0x01 : Module identification register
Definition: P019_14_KG3_DIO2.h:88
U16 u16_Clock_Divider
0x09 : CPU clock divider register
Definition: P019_14_KG3_DIO2.h:103
U16 u16_Reserve_14
0x0E : Reserved
Definition: P019_14_KG3_DIO2.h:108
U16 u16_Control_Register_Toogle
0x05 : Control register bit toggle register
Definition: P019_14_KG3_DIO2.h:97
U16 u16_Reserve_15
0x0F : Reserved
Definition: P019_14_KG3_DIO2.h:109
U16 u16_ISP_Enable
Bit 6 - ISP protocol enable for FPGA: 0 - Disable, 1 - Enable.
Definition: P019_14_KG3_DIO2.h:294
U16 u16_Green_Led_Enable
Bit 14 - Mode for green led: 0 - Disable, 1 - Enable.
Definition: P019_14_KG3_DIO2.h:318
U16 u16_Multibyte
Bit 0 - Multibyte flag, controls chip select for multibyte transfer.
Definition: P019_14_KG3_DIO2.h:279
U16 u16_Red_Led_Enable
Bit 13 - Mode for red led: 0 - Disable, 1 - Enable.
Definition: P019_14_KG3_DIO2.h:315
U16 u16_VDC_Test_Enable
Bit 8 - Test mode enable: 0 - Disable, 1 - Enable.
Definition: P019_14_KG3_DIO2.h:300
U16 u16_Reset
Bit 3 - DUT reset bit: 0 - Normal operation, 1 - Reset condition.
Definition: P019_14_KG3_DIO2.h:288
U16 u16_Raw_Data
Control register raw data.
Definition: P019_14_KG3_DIO2.h:272
U16 u16_Yellow_Led_Enable
Bit 15 - Mode for yellow led: 0 - Disable, 1 - Enable.
Definition: P019_14_KG3_DIO2.h:321
U16 u16_Clock_Mode
Bit 4..5 - DUT clock enable bit: 0 - Clock generation disabled, 1 - Clock generation enabled,...
Definition: P019_14_KG3_DIO2.h:291
U16 u16_CPHA
Bit 2 - Clock phase bit.
Definition: P019_14_KG3_DIO2.h:285
U16 u16_CPOL
Bit 1 - Clock polarity bit.
Definition: P019_14_KG3_DIO2.h:282
U16 u16_Raw_Data
Raw data.
Definition: P019_14_KG3_DIO2.h:395
U16 u16_Data
Bits 0..7 - SPI data.
Definition: P019_14_KG3_DIO2.h:402
Structure for status register bit parsing.
Definition: P019_14_KG3_DIO2.h:329
U16 u16_Raw_Data
Status register raw data.
Definition: P019_14_KG3_DIO2.h:332
U16 u16_Sensor_Green
Bit 4 - Green sensor status: 0 - Bad status, 1 - Good status.
Definition: P019_14_KG3_DIO2.h:351
U16 u16_Sensor_Red
Bit 3 - Red sensor status: 0 - Bad status, 1 - Good status.
Definition: P019_14_KG3_DIO2.h:348
U16 u16_Busy
Bit 0 - SPI transaction in progress flag.
Definition: P019_14_KG3_DIO2.h:339
Structure for bit parsing.
Definition: P019_14_KG3_DIO2.h:414
U16 u16_Raw_Data
Bits 0..16 - Voltage value.
Definition: P019_14_KG3_DIO2.h:417