![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
LTM9100: Anyside™ High Voltage Isolated Switch Controller with I²C Command and Telemetry. More...
LTM9100: Anyside™ High Voltage Isolated Switch Controller with I²C Command and Telemetry.
The LTM9100 μModule controller is a complete, galvanically isolated switch controller with I2C interface, for use as a load switch or hot swap controller. The load is soft started and controlled by an external N-channel MOSFET switch.
http://www.linear.com/product/LTM9100
http://www.linear.com/product/LTC9100#demoboards
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.
Header for LTM9100 Anyside™ High Voltage Isolated Switch Controller with I²C Command and Telemetry.
Definition in file LTM9100.h.
Go to the source code of this file.
Functions | |
int8_t | LTM9100_register_read (uint8_t i2c_address, uint8_t register_address, uint8_t *register_data) |
Reads an 8-bit register from the LTM9100 using the standard repeated start format. More... | |
int8_t | LTM9100_adc_read (uint8_t i2c_address, uint8_t base_address, float *register_data) |
Read the specified ADC value (SENSE, ADIN, ADIN2) and output in human readable format to the serial console. More... | |
int8_t | LTM9100_register_write (uint8_t i2c_address, uint8_t register_address, uint8_t register_data) |
Writes to an 8-bit register inside the LTM9100 using the standard I2C repeated start format. More... | |
int8_t | LTM9100_bit_set (uint8_t i2c_address, uint8_t register_address, uint8_t bit_number) |
Sets any bit inside the LTM9100 using the standard I2C repeated start format. More... | |
int8_t | LTM9100_bit_clear (uint8_t i2c_address, uint8_t register_address, uint8_t bit_number) |
Clears any bit inside the LTM9100 using the standard I2C repeated start format. More... | |
int8_t | LTM9100_bit_read (uint8_t i2c_address, uint8_t register_address, uint8_t bit_number, uint8_t *register_data) |
Read the bit specified by bit_number from the LTM9100. More... | |
int8_t | LTM9100_alert_read (uint8_t *register_data) |
Attempts to read a byte from the I2C bus using the alert address (0xC) to ascertain pending alerts on the bus. More... | |
int8_t | LTM9100_print_all_registers (uint8_t i2c_address) |
Read all LTM9100 registers and output to the serial console. More... | |
int8_t | LTM9100_continuous_read_all_registers (uint8_t i2c_address) |
Read all LTM9100 registers and output to the serial console every second until a key press is detected. More... | |
boolean | valid_register (uint8_t user_register, uint8_t register_array[], uint8_t array_length) |
Check if user_register is a valid register for the LTM9100. More... | |
Variables | |
uint8_t | i2c_address |
uint8_t | reg_read_list [10] |
uint8_t | reg_write_list [9] |
float | sense_resistor |
float | adin_gain |
float | adin2_gain |
int8_t LTM9100_adc_read | ( | uint8_t | i2c_address, |
uint8_t | base_address, | ||
float * | register_data | ||
) |
Read the specified ADC value (SENSE, ADIN, ADIN2) and output in human readable format to the serial console.
Definition at line 80 of file LTM9100.cpp.
int8_t LTM9100_alert_read | ( | uint8_t * | register_data | ) |
Attempts to read a byte from the I2C bus using the alert address (0xC) to ascertain pending alerts on the bus.
Definition at line 155 of file LTM9100.cpp.
int8_t LTM9100_bit_clear | ( | uint8_t | i2c_address, |
uint8_t | register_address, | ||
uint8_t | bit_number | ||
) |
Clears any bit inside the LTM9100 using the standard I2C repeated start format.
Definition at line 133 of file LTM9100.cpp.
int8_t LTM9100_bit_read | ( | uint8_t | i2c_address, |
uint8_t | register_address, | ||
uint8_t | bit_number, | ||
uint8_t * | register_data | ||
) |
Read the bit specified by bit_number from the LTM9100.
Definition at line 146 of file LTM9100.cpp.
int8_t LTM9100_bit_set | ( | uint8_t | i2c_address, |
uint8_t | register_address, | ||
uint8_t | bit_number | ||
) |
Sets any bit inside the LTM9100 using the standard I2C repeated start format.
Definition at line 120 of file LTM9100.cpp.
int8_t LTM9100_continuous_read_all_registers | ( | uint8_t | i2c_address | ) |
Read all LTM9100 registers and output to the serial console every second until a key press is detected.
Definition at line 188 of file LTM9100.cpp.
int8_t LTM9100_print_all_registers | ( | uint8_t | i2c_address | ) |
Read all LTM9100 registers and output to the serial console.
Definition at line 163 of file LTM9100.cpp.
int8_t LTM9100_register_read | ( | uint8_t | i2c_address, |
uint8_t | register_address, | ||
uint8_t * | register_data | ||
) |
Reads an 8-bit register from the LTM9100 using the standard repeated start format.
Definition at line 72 of file LTM9100.cpp.
int8_t LTM9100_register_write | ( | uint8_t | i2c_address, |
uint8_t | register_address, | ||
uint8_t | register_data | ||
) |
Writes to an 8-bit register inside the LTM9100 using the standard I2C repeated start format.
Definition at line 112 of file LTM9100.cpp.
boolean valid_register | ( | uint8_t | user_register, |
uint8_t | register_array[], | ||
uint8_t | array_length | ||
) |
Check if user_register is a valid register for the LTM9100.
Check if user_register is a valid register for the LTM9100.
Definition at line 212 of file LTM9100.cpp.
#define LTM_9100_ALERT_FET LTM_9100_FAULT_FET |
#define LTM_9100_ALERT_OC LTM_9100_FAULT_OC |
#define LTM_9100_ALERT_OV LTM_9100_FAULT_OV |
#define LTM_9100_ALERT_PGO LTM_9100_FAULT_PGI |
#define LTM_9100_ALERT_UV LTM_9100_FAULT_UV |
float adin2_gain |
float adin_gain |
uint8_t i2c_address |
uint8_t reg_read_list[10] |
Definition at line 68 of file LTM9100.cpp.
uint8_t reg_write_list[9] |
Definition at line 69 of file LTM9100.cpp.
float sense_resistor |