| |
- __builtin__.object
-
- logger
- ltc_dc590b_interface
- _abcoll.Mapping(_abcoll.Sized, _abcoll.Iterable, _abcoll.Container)
-
- LTC2937
- exceptions.Exception(exceptions.BaseException)
-
- LTC2937_APIException
class LTC2937(_abcoll.Mapping) |
|
API for the LTC2937 Programmable Six Channel Sequencer and Voltage Supervisor with EEPROM.
Each bit field is read and written as an attribute of the class instance.
Bit fields are changed in place with a read-modify-write algorithm to avoid clearing adjacent data in shared registers.
When multiple bit fields are stored within a single command code, an additional attribute of the class instance exists to allow reads and writes to the full register.
Presets (enumerations) and formats (transformation functions between integers and real-word units) are applied in both directions for interactive use, but can be disabled. |
|
- Method resolution order:
- LTC2937
- _abcoll.Mapping
- _abcoll.Sized
- _abcoll.Iterable
- _abcoll.Container
- __builtin__.object
Methods defined here:
- __getitem__(self, key)
- __init__(self, read_function, write_function=None, verbose=False)
- The user must supply appropriate functions to read from and write to the I²C/SMBus hardware.
read_function should take arguments (addr_7bit, command_code) and return contents of LTC2937 register at command_code.
write_function should take arguments (addr_7bit, command_code, data) and write data to LTC2937 register at command_code.
Set verbose argument to True to enable printing of intermediate results of masking, shifting and data transformation operations.
- __iter__(self)
- __len__(self)
- __repr__(self)
- __setattr__(self, name, value)
- Override attribute storage mechanism to prevent writes to mis-spelled bit fields.
- __setitem__(self, key, value)
- __str__(self)
- create_format(self, format_name, format_function, unformat_function, signed=False, description=None)
- Create a new format definition or modify an existing definition.
format_function should take a single argument of integer raw data from the register and return a version of the data scaled to appropriate units.
unformat_function should take a single argument of data in real units and return an integer version of the data scaled to the register LSB weight.
If the data is signed in two's-complement format, set signed=True.
After creating format, use set_active_format method to make the new format active.
- disable_binary_read_presets(self)
- Disable presets (enumerations) for all single-bit bit fields.
- disable_presets_and_formats(self)
- Remove all presets and formats.
Read and write data will be passed through unmodified, except for masking and shifting.
The dictionary of presets and formats is shared between all instances of the class and any other instances will reflect this change.
This is permanent for the duration of the Python session.
- disable_read_presets(self, bf_name, enabled=False)
- Disable presets (enumerations) for a single bit field bf_name.
- enable_read_presets(self, bf_name, enabled=True)
- Enable presets (enumerations) for a single bit field bf_name.
- get_active_format(self, bf_name)
- Returns string name of format currently active for field bf_name.
- get_constant(self, constant)
- Gets the constants found in the datasheet used by the formatters to convert from real world values to digital value and back.
- get_formats(self, bf_name)
- Returns tuple of formats defined for bit field bf_name.
- get_status(self)
- Returns dictionary containing current value of all readable registers.
- list_constants(self)
- Returns a dictionary of constants found in the datasheet used by the formatters to convert from real world values to digital value and back.
- print_status(self)
- Prints current value of all readable registers.
- set_active_format(self, bf_name, format_name, force=False)
- Changes currently active format for field bf_name to format_name.
If format_name is not in list of allowed_formats, set force argument to True to disable check.
- set_constant(self, constant, value)
- Sets the constants found in the datasheet used by the formatters to convert from real world values to digital value and back.
- set_device_address(self, addr_7bit)
- Change I²C/SMBus device address of the LTC2937.
addr_7bit is the right-justified 7-bit address with the R/W̅ bit omitted.
Data descriptors defined here:
- BREAK_POINT_CMD
- CLEAR_ALERTB
- Release the ALERTB pin. (16 bits, Read Only)
- DEVICE_ID
- Contents of DEVICE_ID = 0x2937 (16 bits, Read Only)
- FAULT_RESPONSE_CMD
- MONITOR_BACKUP_CMD
- MONITOR_STATUS_CMD
- MONITOR_STATUS_HISTORY_CMD
- ON_OFF_CONTROL_CMD
- Configures the combination of ON input and/or I2C inputs needed to control sequencing. Also, activates margin mode of operation.
- RSTB_CONFIG_CMD
- SEQ_DOWN_POSITION_1_CMD
- SEQ_DOWN_POSITION_2_CMD
- SEQ_DOWN_POSITION_3_CMD
- SEQ_DOWN_POSITION_4_CMD
- SEQ_DOWN_POSITION_5_CMD
- SEQ_DOWN_POSITION_6_CMD
- SEQ_POSITION_COUNT_CMD
- SEQ_UP_POSITION_1_CMD
- SEQ_UP_POSITION_2_CMD
- SEQ_UP_POSITION_3_CMD
- SEQ_UP_POSITION_4_CMD
- SEQ_UP_POSITION_5_CMD
- SEQ_UP_POSITION_6_CMD
- SPECIAL_LOT
- Returns two bytes indicating a factory special lot number. Users may over write the register with their own information. (16 bits, R/W)
- STATUS_INFORMATION_CMD
- TOFF_TIMERS_1_CMD
- TOFF_TIMERS_2_CMD
- TOFF_TIMERS_3_CMD
- TOFF_TIMERS_4_CMD
- TOFF_TIMERS_5_CMD
- TOFF_TIMERS_6_CMD
- TON_TIMERS_1_CMD
- TON_TIMERS_2_CMD
- TON_TIMERS_3_CMD
- TON_TIMERS_4_CMD
- TON_TIMERS_5_CMD
- TON_TIMERS_6_CMD
- V_RANGE_CMD
- V_THRESHOLD_1_CMD
- V_THRESHOLD_2_CMD
- V_THRESHOLD_3_CMD
- V_THRESHOLD_4_CMD
- V_THRESHOLD_5_CMD
- V_THRESHOLD_6_CMD
- WRITE_PROTECTION_CMD
- Contains lock key code and lock bit to prevent accidental changes.
- active_pull_down_1
- Voltage Monitor 1 active pull_down ON/OFF control. (1 bit, R/W)
Preset 'PULL_DOWN_DISABLED': 0
Preset 'PULL_DOWN_ENABLED': 1
- active_pull_down_2
- Voltage Monitor 2 active pull_down ON/OFF control. (1 bit, R/W)
Preset 'PULL_DOWN_DISABLED': 0
Preset 'PULL_DOWN_ENABLED': 1
- active_pull_down_3
- Voltage Monitor 3 active pull_down ON/OFF control. (1 bit, R/W)
Preset 'PULL_DOWN_DISABLED': 0
Preset 'PULL_DOWN_ENABLED': 1
- active_pull_down_4
- Voltage Monitor 4 active pull_down ON/OFF control. (1 bit, R/W)
Preset 'PULL_DOWN_DISABLED': 0
Preset 'PULL_DOWN_ENABLED': 1
- active_pull_down_5
- Voltage Monitor 5 active pull_down ON/OFF control. (1 bit, R/W)
Preset 'PULL_DOWN_DISABLED': 0
Preset 'PULL_DOWN_ENABLED': 1
- active_pull_down_6
- Voltage Monitor 6 active pull_down ON/OFF control. (1 bit, R/W)
Preset 'PULL_DOWN_DISABLED': 0
Preset 'PULL_DOWN_ENABLED': 1
- async_on_off_1
- Ch.1 Asynchronous enable control. Bits 9:0 have to be 0 to use. (1 bit, R/W)
Preset 'HOLD_EN1_LOW': 0
Preset 'RELEASE_EN1': 1
- async_on_off_2
- Ch.2 Asynchronous enable control. Bits 9:0 have to be 0 to use. (1 bit, R/W)
Preset 'HOLD_EN2_LOW': 0
Preset 'RELEASE_EN2': 1
- async_on_off_3
- Ch.3 Asynchronous enable control. Bits 9:0 have to be 0 to use. (1 bit, R/W)
Preset 'HOLD_EN3_LOW': 0
Preset 'RELEASE_EN3': 1
- async_on_off_4
- Ch.4 Asynchronous enable control. Bits 9:0 have to be 0 to use. (1 bit, R/W)
Preset 'HOLD_EN4_LOW': 0
Preset 'RELEASE_EN4': 1
- async_on_off_5
- Ch.5 Asynchronous enable control. Bits 9:0 have to be 0 to use. (1 bit, R/W)
Preset 'HOLD_EN5_LOW': 0
Preset 'RELEASE_EN5': 1
- async_on_off_6
- Ch.6 Asynchronous enable control. Bits 9:0 have to be 0 to use. (1 bit, R/W)
Preset 'HOLD_EN6_LOW': 0
Preset 'RELEASE_EN6': 1
- bp_enable
- Break Point Enable. (1 bit, R/W)
Preset 'BREAK_POINT_NOT_ENABLED': 0
Preset 'BREAK_POINT_ENABLED': 1
- bp_value
- Break Point Sequence Position Value. (10 bits, R/W)
- bu_sf_chan
- Reports the channel responsible for a sequence fault. If multiple channels fault, the lowest channel is reported. (3 bits, Read Only)
Preset 'NONE': 0
Preset 'V1': 1
Preset 'V2': 2
Preset 'V3': 3
Preset 'V4': 4
Preset 'V5': 5
Preset 'V6': 6
Preset 'UNDEFINED': 7
- bu_svf_state
- Supervisor Fault status backup. (1 bit, Read Only)
Preset 'SUPERVISOR_FAULT_HAS_NOT_OCCURRED': 0
Preset 'SUPERVISOR_FAULT_HAS_OCCURRED': 1
- bu_v1_ov_sv_fault
- V1 OV Supervisor Fault backup. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- bu_v1_uv_sv_fault
- V1 UV Supervisor Fault backup. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- bu_v2_ov_sv_fault
- V2 OV Supervisor Fault backup. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- bu_v2_uv_sv_fault
- V2 UV Supervisor Fault backup. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- bu_v3_ov_sv_fault
- V3 OV Supervisor Fault backup. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- bu_v3_uv_sv_fault
- V3 UV Supervisor Fault backup. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- bu_v4_ov_sv_fault
- V4 OV Supervisor Fault backup. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- bu_v4_uv_sv_fault
- V4 UV Supervisor Fault backup. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- bu_v5_ov_sv_fault
- V5 OV Supervisor Fault backup. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- bu_v5_uv_sv_fault
- V5 UV Supervisor Fault backup. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- bu_v6_ov_sv_fault
- V6 OV Supervisor Fault backup. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- bu_v6_uv_sv_fault
- V6 UV Supervisor Fault backup. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- device_key
- Must match against programmed word to change lock bit. (14 bits, R/W)
Preset 'DEFAULT': 3754
- discharge
- Sequenced channel group discharge status. (1 bit, Read Only)
Preset 'ONE_OR_MORE_SEQUENCED_CHANNELS_NOT_DISCHARGED': 0
Preset 'ALL_SEQUENCED_CHANNELS_ARE_BELOW_DISCHARGE_THRESHOLDS': 1
- discharge_start
- Require or Not Require that all sequenced Voltage Monitor Channels are discharged below their thresholds before sequencing up. (1 bit, R/W)
Preset 'DISCHARGE_NOT_REQUIRED': 0
Preset 'DISCHARGE_REQUIRED': 1
- fault_response_action
- Fault response action. (2 bits, R/W)
Preset 'CONTINUE_OPERATION': 0
Preset 'DISCHARGED_RETRY': 1
Preset 'DELAYED_RETRY': 2
Preset 'DISCHARGE_AND_DELAY_RETRY': 3
- faultb_mask
- Determines how device responds to external faults. (1 bit, R/W)
Preset 'IGNORE_EXTERNAL_FAULTB_PULLDOWN': 0
Preset 'RESPOND_TO_EXTERNAL_FAULTB_PULLDOWN': 1
- faultb_state
- Reports the Fault Pin state. (1 bit, R/W)
Preset 'HIGH': 1
Preset 'LOW': 0
- freeze
- System Freeze Control. Refer to Presets for Values (1 bit, R/W)
Preset 'DO_NOT_FREEZE_ON_FAULT': 0
Preset 'FREEZE_DEVICE_STATE_ON_FAULT': 1
- group_seq_status
- Group Sequencing Status. (2 bits, Read Only)
Preset 'SEQUENCE_DOWN_DONE': 0
Preset 'SEQUENCE_UP_IN_PROGRESS': 1
Preset 'SEQUENCE_DOWN_IN_PROGRESS': 2
Preset 'SEQUENCE_UP_DONE': 3
- hw_lock_bit
- State of external WP Input. No register writes are possible when locked. (1 bit, R/W)
Preset 'UNLOCKED': 0
Preset 'LOCKED': 1
- i2c_margin
- RSTB disable (1 bit, R/W)
Preset 'RSTB_OPERATES_NORMALLY': 0
Preset 'RSTB_PULLS_HIGH': 1
- i2c_on_off
- Software/I2C controlled Sequencing. (1 bit, R/W)
Preset 'SEQUENCE_DOWN': 0
Preset 'SEQUENCE_UP': 1
- i2c_on_off_mask
- serial bus on_off control mask (1 bit, R/W)
Preset 'I2C_IGNORE': 0
Preset 'I2C_LISTEN': 1
- local_seq_status
- Addressed Device Sequencing Status. (2 bits, Read Only)
Preset 'SEQUENCE_DOWN_DONE': 0
Preset 'SEQUENCE_UP_IN_PROGRESS': 1
Preset 'SEQUENCE_DOWN_IN_PROGRESS': 2
Preset 'SEQUENCE_UP_DONE': 3
- margin_status
- Logical representation of external margb input and/or i2c margin bit. (1 bit, Read Only)
Preset 'MARGIN_FUNCTION_INACTIVE': 0
Preset 'MARGIN_FUNCTION_ACTIVE': 1
- mb_state
- Monitor Backup Status. (1 bit, Read Only)
Preset 'EMPTY': 0
Preset 'WRITTEN': 1
- on_input_mask
- Determines how part responds to the ON input. (1 bit, R/W)
Preset 'ON_PIN_IGNORE': 0 part ignores the ON input
Preset 'ON_PIN_LISTEN': 1 part requires the ON input to sequence
- on_polarity
- Determines polarity of the ON Input. ACTIVEHIGH = Pull ON high to sequence up. ACTIVELOW = Pull ON low to sequence up. (1 bit, R/W)
Preset 'ACTIVE_HIGH': 0
Preset 'ACTIVE_LOW': 1
- on_state
- Internal ON status (1 bit, R/W)
Preset 'INTERNAL_ON_LOW': 0
Preset 'INTERNAL_ON_HIGH': 1
- other_fault
- External or SHARE_CLK fault status. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- ov_fault
- Supervisor fault by mapped OV channel. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- ov_threshold_1
- Specify V1 OV Threshold. (8 bits, R/W)
Format: Volts_to_TE_LR convert a voltage value to Threshold Encoding for Low Range
Format: Volts_to_TE_HR convert a voltage value to Threshold Encoding for High Range
Format: Volts_to_TE_AR convert a voltage value to Threshold Encoding for Adjustable Range
- ov_threshold_2
- Specify V2 OV Threshold. (8 bits, R/W)
Format: Volts_to_TE_LR convert a voltage value to Threshold Encoding for Low Range
Format: Volts_to_TE_HR convert a voltage value to Threshold Encoding for High Range
Format: Volts_to_TE_AR convert a voltage value to Threshold Encoding for Adjustable Range
- ov_threshold_3
- Specify V3 OV Threshold. (8 bits, R/W)
Format: Volts_to_TE_LR convert a voltage value to Threshold Encoding for Low Range
Format: Volts_to_TE_HR convert a voltage value to Threshold Encoding for High Range
Format: Volts_to_TE_AR convert a voltage value to Threshold Encoding for Adjustable Range
- ov_threshold_4
- Specify V4 OV Threshold. (8 bits, R/W)
Format: Volts_to_TE_LR convert a voltage value to Threshold Encoding for Low Range
Format: Volts_to_TE_HR convert a voltage value to Threshold Encoding for High Range
Format: Volts_to_TE_AR convert a voltage value to Threshold Encoding for Adjustable Range
- ov_threshold_5
- Specify V5 OV Threshold.. (8 bits, R/W)
Format: Volts_to_TE_HR convert a voltage value to Threshold Encoding for High Range
Format: Volts_to_TE_LR convert a voltage value to Threshold Encoding for Low Range
Format: Volts_to_TE_AR convert a voltage value to Threshold Encoding for Adjustable Range
- ov_threshold_6
- Specify V6 OV Threshold. (8 bits, R/W)
Format: Volts_to_TE_HR convert a voltage value to Threshold Encoding for High Range
Format: Volts_to_TE_LR convert a voltage value to Threshold Encoding for Low Range
Format: Volts_to_TE_AR convert a voltage value to Threshold Encoding for Adjustable Range
- retry_count
- Read the number of retries attempted. (3 bits, R/W)
Preset 'UNDEFINED': 7
- retry_delay
- Fault Retry Delay Settings. (3 bits, R/W)
Preset '0_05ms': 0
Preset '200ms': 1
Preset '410ms': 2
Preset '820ms': 3
Preset '1_64s': 4
Preset '3_28s': 5
Preset '6_55s': 6
Preset '13_1s': 7
- retry_number
- Automatic Retry count. (3 bits, R/W)
Preset 'DO_NOT_ATTEMPT_TO_RETRY': 0
Preset 'RETRY_1_TIMES': 1
Preset 'RETRY_2_TIMES': 2
Preset 'RETRY_3_TIMES': 3
Preset 'RETRY_4_TIMES': 4
Preset 'RETRY_5_TIMES': 5
Preset 'RETRY_6_TIMES': 6
Preset 'UNLIMITED_RETRIES': 7
- rstb_delay
- Sets the RSTB assertion delay. (3 bits, R/W)
Preset '0_05ms': 0
Preset '1_6ms': 1
Preset '6_4ms': 2
Preset '26ms': 3
Preset '51ms': 4
Preset '200ms': 5
Preset '410ms': 6
Preset '1640ms': 7
- rstb_status
- Status of the RSTB pin. (1 bit, Read Only)
Preset 'RSTB_IS_HIGH': 0
Preset 'RSTB_IS_LOW': 1
- seq_control_fault
- Control Fault Status. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT': 1
- seq_down_fault
- Maximum Turn_off time Fault. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- seq_down_position_1
- Specifies sequence down position for channel 1. (10 bits, R/W)
- seq_down_position_2
- Specifies sequence down position for channel 2. (10 bits, R/W)
- seq_down_position_3
- Specifies sequence down position for channel 3. (10 bits, R/W)
- seq_down_position_4
- Specifies sequence down position for channel 4. (10 bits, R/W)
- seq_down_position_5
- Specifies sequence down position for channel 5. (10 bits, R/W)
- seq_down_position_6
- Specifies sequence down position for channel 6. (10 bits, R/W)
- seq_down_qual
- Selects Time or Event based Sequence Down. (1 bit, R/W)
Preset 'DISCHARGE_BASED': 0
Preset 'TIME_BASED': 1
- seq_up_fault
- Maximum Turn_on time Fault. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- seq_up_position_1
- Specifies sequence position for channel 1. Set to 0 to remove channel from sequencing. (10 bits, R/W)
- seq_up_position_2
- Specifies sequence position for channel 2. Set to 0 to remove channel from sequencing. (10 bits, R/W)
- seq_up_position_3
- Specifies sequence position for channel 3. Set to 0 to remove channel from sequencing. (10 bits, R/W)
- seq_up_position_4
- Specifies sequence position for channel 4. Set to 0 to remove channel from sequencing. (10 bits, R/W)
- seq_up_position_5
- Specifies sequence position for channel 5. Set to 0 to remove channel from sequencing. (10 bits, R/W)
- seq_up_position_6
- Specifies sequence position for channel 6. Set to 0 to remove channel from sequencing. (10 bits, R/W)
- sf_chan_hist
- Reports the channel responsible for a sequence fault. If multiple channels fault, the lowest channel is reported. (3 bits, Read Only)
Preset 'NONE': 0
Preset 'V1': 1
Preset 'V2': 2
Preset 'V3': 3
Preset 'V4': 4
Preset 'V5': 5
Preset 'V6': 6
Preset 'UNDEFINED': 7
- sf_channel
- Reports the channel responsible for a sequence fault. If multiple channels fault, the lowest channel is reported. (3 bits, Read Only)
Preset 'NONE': 0
Preset 'V1': 1
Preset 'V2': 2
Preset 'V3': 3
Preset 'V4': 4
Preset 'V5': 5
Preset 'V6': 6
Preset 'UNDEFINED': 7
- sp_bp_test
- Compare sp_count with bp_value. (1 bit, Read Only)
Preset 'NOT_EQUAL': 0
Preset 'EQUAL': 1
- sp_count
- Sequence Position Count. (10 bits, Read Only)
- sv_fault
- Supervisor Fault Status. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- sv_fault_enable
- Allows SUPERVISOR fault to pull FAULTB. (1 bit, R/W)
Preset 'SUPERVISOR_FAULT_DOES_NOT_PULL_FAULTB': 0
Preset 'SUPERVISOR_FAULT_PULLS_FAULTB': 1
- sv_fault_status
- Indicates the occurrence of a Supervisor fault. (1 bit, Read Only)
Preset 'SUPERVISOR_FAULT_HAS_NOT_OCCURRED': 0
Preset 'SUPERVISOR_FAULT_HAS_OCCURRED': 1
- sw_lock_bit
- Write lock bit. No register writes are possible when locked. (1 bit, R/W)
Preset 'UNLOCKED': 0
Preset 'LOCKED': 1
- toff_delay_1
- Sets time delay between the start of V1's selected sequence position and pulling EN1 low. (13 bits, R/W)
Format: Delay_time_to_Integer convert an Enable Delay to 13-bit integer
- toff_delay_2
- Sets time delay between the start of V2's selected sequence position and pulling EN2 low. (13 bits, R/W)
Format: Delay_time_to_Integer convert an Enable Delay to 13-bit integer
- toff_delay_3
- Sets time delay between the start of V3's selected sequence position and pulling EN3 low. (13 bits, R/W)
Format: Delay_time_to_Integer convert an Enable Delay to 13-bit integer
- toff_delay_4
- Sets time delay between the start of V4's selected sequence position and pulling EN4 low. (13 bits, R/W)
Format: Delay_time_to_Integer convert an Enable Delay to 13-bit integer
- toff_delay_5
- Sets time delay between the start of V5's selected sequence position and pulling EN5 low. (13 bits, R/W)
Format: Delay_time_to_Integer convert an Enable Delay to 13-bit integer
- toff_delay_6
- Sets time delay between the start of V6's selected sequence position and pulling EN6 low. (13 bits, R/W)
Format: Delay_time_to_Integer convert an Enable Delay to 13-bit integer
- toff_max_1
- Sets the maximum voltage monitor fall time for Channel 1. (3 bits, R/W)
Preset 'INFINITY': 0
Preset '2_6ms': 1
Preset '10_2ms': 2
Preset '41ms': 3
Preset '164ms': 4
Preset '655ms': 5
Preset '2_6s': 6
Preset '10_5s': 7
- toff_max_2
- Sets the maximum voltage monitor fall time for Channel 2. (3 bits, R/W)
Preset 'INFINITY': 0
Preset '2_6ms': 1
Preset '10_2ms': 2
Preset '41ms': 3
Preset '164ms': 4
Preset '655ms': 5
Preset '2_6s': 6
Preset '10_5s': 7
- toff_max_3
- Sets the maximum voltage monitor fall time for Channel 3. (3 bits, R/W)
Preset 'INFINITY': 0
Preset '2_6ms': 1
Preset '10_2ms': 2
Preset '41ms': 3
Preset '164ms': 4
Preset '655ms': 5
Preset '2_6s': 6
Preset '10_5s': 7
- toff_max_4
- Sets the maximum voltage monitor fall time for Channel 4. (3 bits, R/W)
Preset 'INFINITY': 0
Preset '2_6ms': 1
Preset '10_2ms': 2
Preset '41ms': 3
Preset '164ms': 4
Preset '655ms': 5
Preset '2_6s': 6
Preset '10_5s': 7
- toff_max_5
- Sets the maximum voltage monitor fall time for Channel 5. (3 bits, R/W)
Preset 'INFINITY': 0
Preset '2_6ms': 1
Preset '10_2ms': 2
Preset '41ms': 3
Preset '164ms': 4
Preset '655ms': 5
Preset '2_6s': 6
Preset '10_5s': 7
- toff_max_6
- Sets the maximum voltage monitor fall time for Channel 6. (3 bits, R/W)
Preset 'INFINITY': 0
Preset '2_6ms': 1
Preset '10_2ms': 2
Preset '41ms': 3
Preset '164ms': 4
Preset '655ms': 5
Preset '2_6s': 6
Preset '10_5s': 7
- ton_delay_1
- Sets time delay between the start of V1's selected sequence position and the release of EN1. (13 bits, R/W)
Format: Delay_time_to_Integer convert an Enable Delay to 13-bit integer
- ton_delay_2
- Sets time delay between the start of V2's selected sequence position and the release of EN2. (13 bits, R/W)
Format: Delay_time_to_Integer convert an Enable Delay to 13-bit integer
- ton_delay_3
- Sets time delay between the start of V3's selected sequence position and the release of EN3. (13 bits, R/W)
Format: Delay_time_to_Integer convert an Enable Delay to 13-bit integer
- ton_delay_4
- Sets time delay between the start of V4's selected sequence position and the release of EN4. (13 bits, R/W)
Format: Delay_time_to_Integer convert an Enable Delay to 13-bit integer
- ton_delay_5
- Sets time delay between the start of V5's selected sequence position and the release of EN5. (13 bits, R/W)
Format: Delay_time_to_Integer convert an Enable Delay to 13-bit integer
- ton_delay_6
- Sets time delay between the start of V6's selected sequence position and the release of EN6. (13 bits, R/W)
Format: Delay_time_to_Integer convert an Enable Delay to 13-bit integer
- ton_max_1
- Sets the maximum voltage monitor rise time for Channel 1. (3 bits, R/W)
Preset 'INFINITY': 0
Preset '160us': 1
Preset '640us': 2
Preset '2_6ms': 3
Preset '10_2ms': 4
Preset '41ms': 5
Preset '164ms': 6
Preset '655ms': 7
- ton_max_2
- Sets the maximum voltage monitor rise time for Channel 2. (3 bits, R/W)
Preset 'INFINITY': 0
Preset '160us': 1
Preset '640us': 2
Preset '2_6ms': 3
Preset '10_2ms': 4
Preset '41ms': 5
Preset '164ms': 6
Preset '655ms': 7
- ton_max_3
- Sets the maximum voltage monitor rise time for Channel 3. (3 bits, R/W)
Preset 'INFINITY': 0
Preset '160us': 1
Preset '640us': 2
Preset '2_6ms': 3
Preset '10_2ms': 4
Preset '41ms': 5
Preset '164ms': 6
Preset '655ms': 7
- ton_max_4
- Sets the maximum voltage monitor rise time for Channel 4. (3 bits, R/W)
Preset 'INFINITY': 0
Preset '160us': 1
Preset '640us': 2
Preset '2_6ms': 3
Preset '10_2ms': 4
Preset '41ms': 5
Preset '164ms': 6
Preset '655ms': 7
- ton_max_5
- Sets the maximum voltage monitor rise time for Channel 5. (3 bits, R/W)
Preset 'INFINITY': 0
Preset '160us': 1
Preset '640us': 2
Preset '2_6ms': 3
Preset '10_2ms': 4
Preset '41ms': 5
Preset '164ms': 6
Preset '655ms': 7
- ton_max_6
- Sets the maximum voltage monitor rise time for Channel 6. (3 bits, R/W)
Preset 'INFINITY': 0
Preset '160us': 1
Preset '640us': 2
Preset '2_6ms': 3
Preset '10_2ms': 4
Preset '41ms': 5
Preset '164ms': 6
Preset '655ms': 7
- uv_fault
- Supervisor fault by mapped UV channel. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- uv_threshold_1
- Specify V1 UV Threshold. (8 bits, R/W)
Format: Volts_to_TE_LR convert a voltage value to Threshold Encoding for Low Range
Format: Volts_to_TE_HR convert a voltage value to Threshold Encoding for High Range
Format: Volts_to_TE_AR convert a voltage value to Threshold Encoding for Adjustable Range
- uv_threshold_2
- Specify V2 UV Threshold. (8 bits, R/W)
Format: Volts_to_TE_LR convert a voltage value to Threshold Encoding for Low Range
Format: Volts_to_TE_HR convert a voltage value to Threshold Encoding for High Range
Format: Volts_to_TE_AR convert a voltage value to Threshold Encoding for Adjustable Range
- uv_threshold_3
- Specify V3 UV Threshold. (8 bits, R/W)
Format: Volts_to_TE_LR convert a voltage value to Threshold Encoding for Low Range
Format: Volts_to_TE_HR convert a voltage value to Threshold Encoding for High Range
Format: Volts_to_TE_AR convert a voltage value to Threshold Encoding for Adjustable Range
- uv_threshold_4
- Specify V4 UV Threshold. (8 bits, R/W)
Format: Volts_to_TE_LR convert a voltage value to Threshold Encoding for Low Range
Format: Volts_to_TE_HR convert a voltage value to Threshold Encoding for High Range
Format: Volts_to_TE_AR convert a voltage value to Threshold Encoding for Adjustable Range
- uv_threshold_5
- Specify V5 UV Threshold. (8 bits, R/W)
Format: Volts_to_TE_HR convert a voltage value to Threshold Encoding for High Range
Format: Volts_to_TE_LR convert a voltage value to Threshold Encoding for Low Range
Format: Volts_to_TE_AR convert a voltage value to Threshold Encoding for Adjustable Range
- uv_threshold_6
- Specify V6 UV Threshold. (8 bits, R/W)
Format: Volts_to_TE_HR convert a voltage value to Threshold Encoding for High Range
Format: Volts_to_TE_LR convert a voltage value to Threshold Encoding for Low Range
Format: Volts_to_TE_AR convert a voltage value to Threshold Encoding for Adjustable Range
- v1_ov_enable
- Maps Channel 1 OV into RSTB output. (1 bit, R/W)
Preset 'NOT_ENABLED': 0
Preset 'ENABLED': 1
- v1_ov_status
- V1 OV comparator live status. (1 bit, Read Only)
Preset 'NO_VIOLATION': 0
Preset 'HIGH_LIMIT_VIOLATION': 1
- v1_ov_sv_fault
- V1 OV Supervisor Fault history. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- v1_range
- Monitor range setting for Voltage Monitor 1. (2 bits, R/W)
Preset 'HIGH_RANGE': 0
Preset 'LOW_RANGE': 1
Preset 'POSITIVE_ADJUSTABLE': 2
Preset 'NEGATIVE_ADJUSTABLE': 3
- v1_uv_enable
- Maps Channel 1 UV into RSTB output. (1 bit, R/W)
Preset 'NOT_ENABLED': 0
Preset 'ENABLED': 1
- v1_uv_status
- V1 UV comparator live status. (1 bit, Read Only)
Preset 'NO_VIOLATION': 0
Preset 'LOW_LIMIT_VIOLATION': 1
- v1_uv_sv_fault
- V1 UV Supervisor Fault history. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- v2_ov_enable
- Maps Channel 2 OV into RSTB output. (1 bit, R/W)
Preset 'NOT_ENABLED': 0
Preset 'ENABLED': 1
- v2_ov_status
- V2 OV comparator live status. (1 bit, Read Only)
Preset 'NO_VIOLATION': 0
Preset 'HIGH_LIMIT_VIOLATION': 1
- v2_ov_sv_fault
- V2 OV Supervisor Fault history. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- v2_range
- Monitor range setting for Voltage Monitor 2. (2 bits, R/W)
Preset 'HIGH_RANGE': 0
Preset 'LOW_RANGE': 1
Preset 'POSITIVE_ADJUSTABLE': 2
Preset 'NEGATIVE_ADJUSTABLE': 3
- v2_uv_enable
- Maps Channel 2 UV into RSTB output. (1 bit, R/W)
Preset 'NOT_ENABLED': 0
Preset 'ENABLED': 1
- v2_uv_status
- V2 UV comparator live status. (1 bit, Read Only)
Preset 'NO_VIOLATION': 0
Preset 'LOW_LIMIT_VIOLATION': 1
- v2_uv_sv_fault
- V2 UV Supervisor Fault history. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- v3_ov_enable
- Maps Channel 3 OV into RSTB output. (1 bit, R/W)
Preset 'NOT_ENABLED': 0
Preset 'ENABLED': 1
- v3_ov_status
- V3 OV comparator live status. (1 bit, Read Only)
Preset 'NO_VIOLATION': 0
Preset 'HIGH_LIMIT_VIOLATION': 1
- v3_ov_sv_fault
- V3 OV Supervisor Fault history. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- v3_range
- Monitor range setting for Voltage Monitor 3. (2 bits, R/W)
Preset 'HIGH_RANGE': 0
Preset 'LOW_RANGE': 1
Preset 'POSITIVE_ADJUSTABLE': 2
Preset 'NEGATIVE_ADJUSTABLE': 3
- v3_uv_enable
- Maps Channel 3 UV into RSTB output. (1 bit, R/W)
Preset 'NOT_ENABLED': 0
Preset 'ENABLED': 1
- v3_uv_status
- V3 UV comparator live status. (1 bit, Read Only)
Preset 'NO_VIOLATION': 0
Preset 'LOW_LIMIT_VIOLATION': 1
- v3_uv_sv_fault
- V3 UV Supervisor Fault history. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- v4_ov_enable
- Maps Channel 4 OV into RSTB output. (1 bit, R/W)
Preset 'NOT_ENABLED': 0
Preset 'ENABLED': 1
- v4_ov_status
- V4 OV comparator live status. (1 bit, Read Only)
Preset 'NO_VIOLATION': 0
Preset 'HIGH_LIMIT_VIOLATION': 1
- v4_ov_sv_fault
- V4 OV Supervisor Fault history. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- v4_range
- Monitor range setting for Voltage Monitor 4. (2 bits, R/W)
Preset 'HIGH_RANGE': 0
Preset 'LOW_RANGE': 1
Preset 'POSITIVE_ADJUSTABLE': 2
Preset 'NEGATIVE_ADJUSTABLE': 3
- v4_uv_enable
- Maps Channel 4 UV into RSTB output. (1 bit, R/W)
Preset 'NOT_ENABLED': 0
Preset 'ENABLED': 1
- v4_uv_status
- V4 UV comparator live status. (1 bit, Read Only)
Preset 'NO_VIOLATION': 0
Preset 'LOW_LIMIT_VIOLATION': 1
- v4_uv_sv_fault
- V4 UV Supervisor Fault history. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- v5_ov_enable
- Maps Channel 5 OV into RSTB output. (1 bit, R/W)
Preset 'NOT_ENABLED': 0
Preset 'ENABLED': 1
- v5_ov_status
- V5 OV comparator live status. (1 bit, Read Only)
Preset 'NO_VIOLATION': 0
Preset 'HIGH_LIMIT_VIOLATION': 1
- v5_ov_sv_fault
- V5 OV Supervisor Fault history. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- v5_range
- Monitor range setting for Voltage Monitor 5. (2 bits, R/W)
Preset 'HIGH_RANGE': 0
Preset 'LOW_RANGE': 1
Preset 'POSITIVE_ADJUSTABLE': 2
Preset 'NEGATIVE_ADJUSTABLE': 3
- v5_uv_enable
- Maps Channel 5 UV into RSTB output. (1 bit, R/W)
Preset 'NOT_ENABLED': 0
Preset 'ENABLED': 1
- v5_uv_status
- V5 UV comparator live status. (1 bit, Read Only)
Preset 'NO_VIOLATION': 0
Preset 'LOW_LIMIT_VIOLATION': 1
- v5_uv_sv_fault
- V5 UV Supervisor Fault history. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- v6_ov_enable
- Maps Channel 6 OV into RSTB output. (1 bit, R/W)
Preset 'NOT_ENABLED': 0
Preset 'ENABLED': 1
- v6_ov_status
- V6 OV comparator live status. (1 bit, Read Only)
Preset 'NO_VIOLATION': 0
Preset 'HIGH_LIMIT_VIOLATION': 1
- v6_ov_sv_fault
- V6 OV Supervisor Fault history. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
- v6_range
- Monitor range setting for Voltage Monitor 6. (2 bits, R/W)
Preset 'HIGH_RANGE': 0
Preset 'LOW_RANGE': 1
Preset 'POSITIVE_ADJUSTABLE': 2
Preset 'NEGATIVE_ADJUSTABLE': 3
- v6_uv_enable
- Maps Channel 6 UV into RSTB output. (1 bit, R/W)
Preset 'NOT_ENABLED': 0
Preset 'ENABLED': 1
- v6_uv_status
- V6 UV comparator live status. (1 bit, Read Only)
Preset 'NO_VIOLATION': 0
Preset 'LOW_LIMIT_VIOLATION': 1
- v6_uv_sv_fault
- V6 UV Supervisor Fault history. (1 bit, Read Only)
Preset 'NO_FAULT': 0
Preset 'FAULT_OCCURRED': 1
Data and other attributes defined here:
- __abstractmethods__ = frozenset([])
Methods inherited from _abcoll.Mapping:
- __contains__(self, key)
- __eq__(self, other)
- __ne__(self, other)
- get(self, key, default=None)
- D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.
- items(self)
- D.items() -> list of D's (key, value) pairs, as 2-tuples
- iteritems(self)
- D.iteritems() -> an iterator over the (key, value) items of D
- iterkeys(self)
- D.iterkeys() -> an iterator over the keys of D
- itervalues(self)
- D.itervalues() -> an iterator over the values of D
- keys(self)
- D.keys() -> list of D's keys
- values(self)
- D.values() -> list of D's values
Data and other attributes inherited from _abcoll.Mapping:
- __hash__ = None
Class methods inherited from _abcoll.Sized:
- __subclasshook__(cls, C) from abc.ABCMeta
Data descriptors inherited from _abcoll.Sized:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from _abcoll.Sized:
- __metaclass__ = <class 'abc.ABCMeta'>
- Metaclass for defining Abstract Base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed
directly, and then acts as a mix-in class. You can also register
unrelated concrete classes (even built-in classes) and unrelated
ABCs as 'virtual subclasses' -- these and their descendants will
be considered subclasses of the registering ABC by the built-in
issubclass() function, but the registering ABC won't show up in
their MRO (Method Resolution Order) nor will method
implementations defined by the registering ABC be callable (not
even via super()).
|
class logger(__builtin__.object) |
| |
Methods defined here:
- __init__(self, chip, db_filename='data_log.sqlite')
- Data logger stores memory dump(s) of the LTC2937 to a SQLite database file.
chip is an instance of the LTC2937 class.
A new database table will be automatically created with the current timestamp.
- interval_log(self, interval_seconds, max_rows=None)
- Repeatedly store dump of the LTC2937 memory to the database.
Memory will be recorded once per interval_seconds.
Data will be recorded max_rows times. If set to None, recording will continue indefinitely.
- log(self)
- Store single dump of the LTC2937 memory to the database.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class ltc_dc590b_interface(__builtin__.object) |
|
Python Communication Interface for DC590B / Linduino.
Provides the following SMBus protocols with optional PEC (Packet Error Checking) CRC:
ReadWord
WriteWord
ReadByte
WriteByte
ReceiveByte
SendByte
AlertResponse
Requires PySerial. |
|
Methods defined here:
- __init__(self, serial_port, PEC=False, **kwargs)
- Provide serial port of attached Linear Technology DC590 I²C interface board or DC2026B Linduno board programmed with DC590 emulator sketch. kwargs will be passed to PySerial init unless serial_port is already configured.
- alert_response(self)
- SMBus Send Byte Protocol.
Packet Error Checking controlled by class init.
Slave device address specified in 7-bit format.
Returns None if no response to ARA, otherwise the responding device address placed in the 7 most significant bits of the byte.
The returned LSB (R/W̅ bit) will be zero in this implementation (i.e. write address).
- read_byte(self, addr_7bit, command_code)
- SMBus Read Byte Protocol.
Packet Error Checking controlled by class init.
Slave device address specified in 7-bit format.
Returns 8-bit data from slave.
- read_word(self, addr_7bit, command_code)
- SMBus Read Word Protocol.
Packet Error Checking controlled by class init.
Slave device address specified in 7-bit format.
Returns 16-bit data from slave.
- receive_byte(self, addr_7bit)
- SMBus Receive Byte Protocol.
Packet Error Checking controlled by class init.
Slave device address specified in 7-bit format.
Returns 8-bit data from slave.
- send_byte(self, addr_7bit, data8)
- SMBus Send Byte Protocol.
Packet Error Checking controlled by class init.
Slave device address specified in 7-bit format.
Returns None.
- write_byte(self, addr_7bit, command_code, data8)
- SMBus Write Byte Protocol.
Packet Error Checking controlled by class init.
Slave device address specified in 7-bit format.
Returns None.
- write_word(self, addr_7bit, command_code, data16)
- SMBus Write Word Protocol.
Packet Error Checking controlled by class init.
Slave device address specified in 7-bit format.
Returns None.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |