69 #define LTC3880_I2C_ADDRESS 0x30 70 #define LTC2974_I2C_ADDRESS 0x32 71 #define LTC2977_I2C_ADDRESS 0x33 105 uint8_t *addresses = NULL;
108 if (Serial.available())
111 if (user_command !=
'm')
112 Serial.println(user_command);
114 switch (user_command)
146 addresses = smbus->
probe(0);
147 while (*addresses != 0)
149 Serial.print(
"ADDR 0x");
150 Serial.println(*addresses++, HEX);
157 Serial.println(
"Incorrect Option");
170 Serial.print(F(
"\n***************************************************************\n"));
171 Serial.print(F(
"* DC1962C SVID Demonstration Program *\n"));
172 Serial.print(F(
"* *\n"));
173 Serial.print(F(
"* This program demonstrates how program SVID for LTC3880 *\n"));
174 Serial.print(F(
"* *\n"));
175 Serial.print(F(
"* Set the baud rate to 115200 and select the newline terminator.*\n"));
176 Serial.print(F(
"* *\n"));
177 Serial.print(F(
"*****************************************************************\n"));
184 Serial.print(F(
"\n 0-SVID 0 - VBOOT - 60mV\n"));
185 Serial.print(F(
" 1-SVID 1 - VBOOT - 45mV\n"));
186 Serial.print(F(
" 2-SVID 2 - VBOOT - 30mV\n"));
187 Serial.print(F(
" 3-SVID 3 - VBOOT - 15mV \n"));
188 Serial.print(F(
" 4-SVID 4 - VBOOT\n"));
189 Serial.print(F(
" 5-PEC On\n"));
190 Serial.print(F(
" 6-PEC Off\n"));
191 Serial.print(F(
" 7-Bus Probe\n"));
192 Serial.print(F(
" 8-Reset\n"));
193 Serial.print(F(
"\nEnter a command:"));
200 Serial.println(F(
"\nWarning: Demo board not detected. Linduino will attempt to proceed."));
static LT_SMBus * smbusNoPec
static void print_prompt()
Prints main menu.
unsigned char user_command
#define LTC2974_I2C_ADDRESS
LTC SMBus Support: Implementation for a shared SMBus layer.
Header File for Linduino Libraries and Demo Code.
void enablePec(uint8_t address)
Enable pec for all transactions.
static void loop()
Repeats Linduino loop.
static void print_warning_prompt()
Prints a warning if the demo board is not detected.
void disablePec(uint8_t address)
Disable pec for all transactions.
static void print_title()
Prints the title block when program first starts.
static LT_PMBus * pmbusPec
LT_I2CBus: Routines to communicate to I2C by Wire Library.
void resetGlobal(void)
Issue reset to all devices.
static uint8_t ltc2974_i2c_address
static uint8_t ltc3880_i2c_address
void setPage(uint8_t address, uint8_t page)
Set the page.
#define LTC2977_I2C_ADDRESS
virtual uint8_t * probe(uint8_t command)=0
SMBus bus probe.
static LT_SMBus * smbusPec
LTC SMBus Support: Implementation for a shared SMBus layer.
static uint8_t ltc2977_i2c_address
void setVout(uint8_t address, float voltage)
Set output voltage.
#define LTC3880_I2C_ADDRESS
static void setup()
Initialize Linduino.
static LT_PMBus * pmbusNoPec