![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Linear Technology DC2313A Demonstration. More...
Linear Technology DC2313A Demonstration.
LTC2937: Six Channel Sequencer and Voltage Supervisor with EEPROM
Setup: Set the terminal baud rate to 115200 and select the newline terminator.
http://www.linear.com/product/LTC2937
http://www.linear.com/demo/DC2313A
Copyright 2018(c) Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file DC2313A.ino.
Go to the source code of this file.
Functions | |
static void | setup () |
Initialize Linduino. More... | |
static void | loop () |
Main Linduino Loop. More... | |
static void | print_title () |
Prints the title block when program first starts. More... | |
static void | print_prompt () |
Prints main menu. More... | |
static int | ltc2937_config0 () |
make sure that the LTC2937 is configured for I2C bus control More... | |
static int | ltc2937_restore () |
restore the LTC2937 settings from EEPROM values More... | |
static int | ltc2937_store () |
store the LTC2937 settings into EEPROM More... | |
static int | ltc2937_sequence_up () |
sequence-up the LTC2937 More... | |
static int | ltc2937_sequence_down () |
sequence-down the LTC2937 More... | |
static int | ltc2937_is_down () |
indicate if the LTC2937 is in the sequenced-down state More... | |
static int | ltc2937_read_all_status () |
read all status registers More... | |
static int | ltc2937_read_all_registers () |
read all registers return int for success More... | |
static int | ltc2937_write_all_regs_dc_default () |
write all registers to demo board defaults More... | |
static int | ltc2937_write_seq_regs () |
write sequencing registers to a user-specified pattern More... | |
static int | ltc2937_is_write_protected () |
Indicate if the part is write protected return 0 if the part is write enabled (hardware and software), 1 if it is protected. More... | |
static int | ltc2937_write_enable () |
remove software write-protection report if the part is hardware write-protected More... | |
static int | ltc2937_set_breakpoint (uint16_t set_val) |
set the breakpoint to the given value More... | |
static int | ltc2937_inc_breakpoint () |
increment the breakpoint by 1 More... | |
static int | ltc2937_print_seq_pos_count () |
pretty-print the sequence_position_count register contents More... | |
static int | ltc2937_clear_breakpoint () |
clear breakpoint register More... | |
static int | ltc2937_clear () |
issue a clear command More... | |
static int | ltc2937_clear_fault_backup () |
handle the backup word fault log (affects NVM and RAM) More... | |
static int | ltc2937_clear_alertb () |
clear ALERTB pin More... | |
static int | ltc2937_pretty_print_monitor_backup () |
pretty-print MONITOR_BACKUP More... | |
static int | ltc2937_pretty_print_monitor_status_history () |
pretty-print MONITOR_STATUS_HISTORY More... | |
static int | ltc2937_pretty_print_monitor_status () |
pretty-print MONITOR_STATUS More... | |
static int | ltc2937_pretty_print_status_information () |
pretty-print STATUS_INFORMATION More... | |
Macros | |
#define | LTC2937_I2C_ADDRESS 0x36 |
#define | LTC2937_RESTORE_DELAY 10 |
#define | LTC2937_STORE_DELAY 120 |
Enumerations | |
enum | return_values { SUCCEED =0, NOT_DOWN, WRITE_PROTECTED, FAIL } |
Variables | |
static uint8_t | ltc2937_i2c_address |
static LT_SMBusNoPec * | smbus = new LT_SMBusNoPec() |
|
static |
|
static |
issue a clear command
Definition at line 937 of file DC2313A.ino.
|
static |
|
static |
clear breakpoint register
Definition at line 922 of file DC2313A.ino.
|
static |
handle the backup word fault log (affects NVM and RAM)
Definition at line 969 of file DC2313A.ino.
|
static |
make sure that the LTC2937 is configured for I2C bus control
Definition at line 273 of file DC2313A.ino.
|
static |
increment the breakpoint by 1
Definition at line 853 of file DC2313A.ino.
|
static |
indicate if the LTC2937 is in the sequenced-down state
Definition at line 380 of file DC2313A.ino.
|
static |
Indicate if the part is write protected return 0 if the part is write enabled (hardware and software), 1 if it is protected.
Definition at line 773 of file DC2313A.ino.
|
static |
|
static |
|
static |
pretty-print MONITOR_STATUS_HISTORY
Definition at line 1196 of file DC2313A.ino.
|
static |
|
static |
pretty-print the sequence_position_count register contents
Definition at line 890 of file DC2313A.ino.
|
static |
read all registers return int for success
Definition at line 468 of file DC2313A.ino.
|
static |
|
static |
restore the LTC2937 settings from EEPROM values
Definition at line 293 of file DC2313A.ino.
|
static |
|
static |
|
static |
set the breakpoint to the given value
Definition at line 823 of file DC2313A.ino.
|
static |
store the LTC2937 settings into EEPROM
Definition at line 316 of file DC2313A.ino.
|
static |
write all registers to demo board defaults
Definition at line 648 of file DC2313A.ino.
|
static |
remove software write-protection report if the part is hardware write-protected
Definition at line 797 of file DC2313A.ino.
|
static |
write sequencing registers to a user-specified pattern
Definition at line 710 of file DC2313A.ino.
|
static |
|
static |
Prints the title block when program first starts.
Definition at line 236 of file DC2313A.ino.
|
static |
#define LTC2937_I2C_ADDRESS 0x36 |
Definition at line 66 of file DC2313A.ino.
#define LTC2937_RESTORE_DELAY 10 |
Definition at line 88 of file DC2313A.ino.
#define LTC2937_STORE_DELAY 120 |
Definition at line 89 of file DC2313A.ino.
enum return_values |
Enumerator | |
---|---|
SUCCEED | |
NOT_DOWN | |
WRITE_PROTECTED | |
FAIL |
Definition at line 81 of file DC2313A.ino.
|
static |
Definition at line 72 of file DC2313A.ino.
|
static |
Definition at line 77 of file DC2313A.ino.