mcu

Overview

Microcontoller unit, arm processor, reponsible for reading monitoring points

Python Class & Methods Index

class pyfabil.plugins.tpm_1_6.mcu.McuRegisters[source]
ALARM_THR_OFFSET = 544
FRAM_ADC_AVDD3 = 264
FRAM_ADC_DDR0_VREF = 272
FRAM_ADC_DDR1_VREF = 276
FRAM_ADC_INTERNAL_MCU_TEMP = 308
FRAM_ADC_MAN_1V2 = 268
FRAM_ADC_MGT_AV = 300
FRAM_ADC_MGT_AVTT = 304
FRAM_ADC_MON_5V0 = 296
FRAM_ADC_SW_AVDD1 = 256
FRAM_ADC_SW_AVDD2 = 260
FRAM_ADC_VIN_SCALED = 284
FRAM_ADC_VM_DRVDD = 280
FRAM_ADC_VM_MAN1V8 = 292
FRAM_ADC_VM_MAN3V3 = 288
FRAM_ALARM_THR_AVDD3 = 552
FRAM_ALARM_THR_BOARD_TEMP = 600
FRAM_ALARM_THR_DDR0_VREF = 560
FRAM_ALARM_THR_DDR1_VREF = 564
FRAM_ALARM_THR_FPGA0_FE_CURRENT = 612
FRAM_ALARM_THR_FPGA0_TEMP = 604
FRAM_ALARM_THR_FPGA1_FE_CURRENT = 616
FRAM_ALARM_THR_FPGA1_TEMP = 608
FRAM_ALARM_THR_INTERNAL_MCU_TEMP = 596
FRAM_ALARM_THR_MAN_1V2 = 556
FRAM_ALARM_THR_MGT_AV = 588
FRAM_ALARM_THR_MGT_AVTT = 592
FRAM_ALARM_THR_MON_5V0 = 584
FRAM_ALARM_THR_SW_AVDD1 = 544
FRAM_ALARM_THR_SW_AVDD2 = 548
FRAM_ALARM_THR_VIN_SCALED = 572
FRAM_ALARM_THR_VM_DRVDD = 568
FRAM_ALARM_THR_VM_MAN1V8 = 580
FRAM_ALARM_THR_VM_MAN3V3 = 576
FRAM_ALM_ERR_VALUE = 236
FRAM_BOARD_ALARM = 228
FRAM_BOARD_STATUS = 224
FRAM_BOARD_TEMP = 312
FRAM_BOARD_WARNING = 232
FRAM_FPGA0_FE_CURRENT = 324
FRAM_FPGA0_TEMP = 316
FRAM_FPGA1_FE_CURRENT = 328
FRAM_FPGA1_TEMP = 320
FRAM_I2C_UNREACH_ERR = 244
FRAM_MCU_BOOTLOADER_COMMANDS = 48
FRAM_MCU_BOOTLOADER_VERSION = 44
FRAM_MCU_COMPILE_DATE = 4
FRAM_MCU_COMPLETE_ADC_COUNTER = 40
FRAM_MCU_COUNTER = 36
FRAM_MCU_GIT_HASH = 8
FRAM_MCU_GPR_0 = 12
FRAM_MCU_GPR_1 = 16
FRAM_MCU_GPR_2 = 20
FRAM_MCU_GPR_3 = 24
FRAM_MCU_INTERNAL_COMMAND = 32
FRAM_MCU_POOLING_INTERVAL = 28
FRAM_MCU_STEP = 56
FRAM_MCU_VERSION = 0
FRAM_POWERGOOD = 252
FRAM_POWERGOOD_ERR = 250
FRAM_WARN_ALARM_UPDATE = 400
FRAM_WARN_ERR_VALUE = 240
FRAM_WARN_THR_AVDD3 = 412
FRAM_WARN_THR_BOARD_TEMP = 460
FRAM_WARN_THR_DDR0_VREF = 420
FRAM_WARN_THR_DDR1_VREF = 424
FRAM_WARN_THR_FPGA0_FE_CURRENT = 472
FRAM_WARN_THR_FPGA0_TEMP = 464
FRAM_WARN_THR_FPGA1_FE_CURRENT = 480
FRAM_WARN_THR_FPGA1_TEMP = 468
FRAM_WARN_THR_INTERNAL_MCU_TEMP = 456
FRAM_WARN_THR_MAN_1V2 = 416
FRAM_WARN_THR_MGT_AV = 448
FRAM_WARN_THR_MGT_AVTT = 452
FRAM_WARN_THR_MON_5V0 = 444
FRAM_WARN_THR_SW_AVDD1 = 404
FRAM_WARN_THR_SW_AVDD2 = 408
FRAM_WARN_THR_VIN_SCALED = 432
FRAM_WARN_THR_VM_DRVDD = 428
FRAM_WARN_THR_VM_MAN1V8 = 440
FRAM_WARN_THR_VM_MAN3V3 = 436
MCU_ADC_OFFSET = 256
TEMPS_OFFSET = 312
class pyfabil.plugins.tpm_1_6.mcu.Tpm_1_6_Mcu(board, **kwargs)[source]

FirmwareBlock tests class

clean_up()[source]

Perform cleanup :return: Success

get_adc_value(adc_measure=None, all_measure=None)[source]

Get single adc_measure current value, or all available measure values and thresholds (mandatory set once of parameter) :param adc_measure: use if want get only current value of selected measure :param all_measure: set to True if want all available measure current value and alarm and thresholds values :return values: single selected value, or dictionary with all available measure value and thresholds

get_available_currents()[source]
get_available_mcu_adc()[source]

Get List of Supplies Mesures Monitored with MCU ADCs, to be used in other methods :return mcu_adc_names: List of MCU Measures Names available

get_available_voltages()[source]
get_board_alm_temp_thresholds()[source]

Get board Alarm temperature Max and Min thresholds values :return min_temp: minimum temperature threshold value :return man_temp: maximum temperature threshold value :note this method can not work properly with bios < v0.3.0

get_board_warn_temp_thresholds()[source]

Get board Warning temperature Max and Min thresholds values :return min_temp: minimum temperature threshold value :return man_temp: maximum temperature threshold value :note this method can not work properly with bios < v0.3.0

get_current(current=None)[source]
get_ddr0_vref()[source]
get_ddr1_vref()[source]
get_fpga_alm_temp_thresholds(fpga_id)[source]

Get selected FPGA Alarm temperature Max and Min thresholds values :param fpga_id: select which FPGA’ temp thresholds will be returned (possible values:0,1) :return min_temp: minimum temperature threshold value :return man_temp: maximum temperature threshold value :note this method can not work properly with bios < v0.3.0

get_fpga_warn_temp_thresholds(fpga_id)[source]

Get selected FPGA Warning temperature Max and Min thresholds values :param fpga_id: select which FPGA’ temp thresholds will be returned(possible values:0,1) :return min_temp: minimum temperature threshold value :return man_temp: maximum temperature threshold value :note this method can not work properly with bios < v0.3.0

get_i2c_unreach_err()[source]

get status of i2c unreachable error status :return i2cunreach_err: i2c unreachable error value if not 0 an error was detetcted :note this method not work properly with bios < v0.3.0

get_man_1v2()[source]
get_mcu_last_exec_phase_id()[source]

Get mcu last execution phase id :return exec_phaseid: last execution phase id

get_mcu_temperature()[source]

Get MCU temperature :return temp_f: MCU temperature value

get_mon_1v8()[source]
get_mon_3v3()[source]
get_pgood_err()[source]

get status of power good error status :return pgood_err: power good error value if not 0 an error was detetcted :note this method not work properly with bios < v0.3.0

get_rounded_adc_value(McuADCs_key)[source]
get_temperature()[source]

Get Board temperature measured on PCB temperature sensor :return temp_upd: temperature value, if I2C access error is detected a value of -273 will be returned :note until ADC PS is off the returned value of temp is 0 :note this method can not work properly with bios < v0.3.0

get_version()[source]

Get MCU FW Version :return version: MCU FW Version (FW Version_Compile_date_InternalCommand)

get_vin()[source]
get_vm_drvdd()[source]
get_voltage(voltage=None)[source]
get_voltage_5v0()[source]
get_voltage_av()[source]
get_voltage_avdd1()[source]
get_voltage_avdd2()[source]
get_voltage_avdd3()[source]
get_voltage_avtt()[source]
get_voltage_fpga0()[source]
get_voltage_fpga1()[source]
get_voltage_vcc_aux()[source]
get_volttemp_err_status()[source]

get status of voltage or temp error detection by MCU, if error is detected the value that has generated the error will be returned :return error_status: error status vale if not 0 an error was detected :return error_value: value of the measure that caused the error in case of error detection, else 0 :note this method not work properly with bios < v0.3.0

get_volttemp_warn_status()[source]

get status of voltage or temp warning detection by MCU, if warning is detected the value that has generated the warning will be returned :return warning_status: error status vale if not 0 an error was detected :return warning_value: value of the measure that caused the warning in case of error detection :note this method not work properly with bios < v0.3.0

get_vref_2v5()[source]
initialise()[source]

Initialise TpmMcu

set_adc_alarm_thresholds(adc_measure, min_thr, max_thr)[source]

Set slected MCU ADC measure Alarrm Max and Min thresholds values :param adc_measure: name of available measure to be configured :param min_thr: minimun alarm threshold value in Volt :param max_thr: maximun alarm threshold value in Volt :return op_status: operation status, 0 success, -1 failed :note this method not work properly with bios < v0.3.0

set_adc_warning_thresholds(adc_measure, min_thr, max_thr)[source]

Set slected MCU ADC measure Warning Max and Min thresholds values :param adc_measure: name of available measure to be configured :param min_thr: minimun warning threshold value in Volt :param max_thr: maximun warning threshold value in Volt :return op_status: operation status, 0 success, -1 failed :note this method not work properly with bios < v0.3.0

set_board_alm_temp_thresholds(min_temp, max_temp)[source]

Set board Alarm temperature Max and Min thresholds values :param min_temp: minimun temp threshold value in Celsius degree :param max_temp: maximun temp threshold value in Celsius degree :note this method can not work properly with bios < v0.3.0

set_board_warn_temp_thresholds(min_temp, max_temp)[source]

Set board Warning temperature Max and Min thresholds values :param min_temp: minimun temp threshold value in Celsius degree :param max_temp: maximun temp threshold value in Celsius degree :note this method can not work properly with bios < v0.3.0

set_fpgas_alm_temp_thresholds(min_temp, max_temp, fpga_id)[source]

Set selected FPGA Alarm temperature Max and Min thresholds values :param min_temp: minimun temp threshold value in Celsius degree :param max_temp: maximun temp threshold value in Celsius degree :param fpga_id: select which FPGA’ temp thresholds will be configured (possible values:0,1) :note this method can not work properly with bios < v0.3.0

set_fpgas_warn_temp_thresholds(min_temp, max_temp, fpga_id)[source]

Set selected FPGA Warning temperature Max and Min thresholds values :param min_temp: minimun temp threshold value in Celsius degree :param max_temp: maximun temp threshold value in Celsius degree :param fpga_id: select which FPGA’ temp thresholds will be configured (possible values:0,1) :note this method can not work properly with bios < v0.3.0

status_check()[source]

Perform status check :return: Status