MAX77642/MAX77643 Ultra Configurable PMIC Featuring 93% Peak Efficiency Single-Inductor, 3-Output BuckBoost, 1-LDO for Long Battery Life Mbed Driver

Embed: (wiki syntax)

« Back to documentation index

MAX77643_2 Class Reference

MAX77643_2 Class Reference

MAX77643_2 Ultra Configurable PMIC Featuring 93% Peak Efficiency Single-Inductor, 3-Output Buck-Boost, 1-LDO for Long Battery Life Applications. More...

#include <MAX77643_2.h>

Public Types

enum  reg_bit_int_glbl_t
 

Register Configuration.

More...
enum  reg_bit_ercflag_t
 

Register Configuration.

More...
enum  reg_bit_stat_glbl_t
 

Register Configuration.

More...
enum  reg_bit_int_mask_t
 

Register Configuration.

More...
enum  reg_bit_cnfg_glbl0_t
 

Register Configuration.

More...
enum  reg_bit_cnfg_glbl1_t
 

Register Configuration.

More...
enum  reg_bit_cnfg_gpio_t
 

Register Configuration.

More...
enum  reg_bit_cnfg_wdt_t
 

Register Configuration.

More...
enum  reg_bit_cnfg_sbb_top_t
 

Register Configuration.

More...
enum  decode_op_mode_t
 

Register Configuration.

More...
enum  decode_ip_sbb_t
 

Register Configuration.

More...
enum  decode_ade_sbb_t
 

Register Configuration.

More...
enum  decode_en_sbb_t
 

Register Configuration.

More...
enum  decode_tv_ofs_ldo_t
 

Register Configuration.

More...
enum  decode_en_ldo_t
 

Register Configuration.

More...
enum  decode_ade_ldo_t
 

Register Configuration.

More...
enum  decode_ldo_md_t
 

Register Configuration.

More...
typedef void(* interrupt_handler_function )(void *)
 Function pointer type to interrupt handler function.

Public Member Functions

 MAX77643_2 (I2C *i2c, PinName IRQPin=NC)
 MAX77643_2 constructor.
 ~MAX77643_2 ()
 MAX77643_2 destructor.
int read_register (uint8_t reg, uint8_t *value)
 Read from a register.
int write_register (uint8_t reg, const uint8_t *value)
 Write to a register.
int get_ercflag (reg_bit_ercflag_t bit_field, uint8_t *flag)
 Get bit field of ERCFLAG (0x02) register.
int get_stat_glbl (reg_bit_stat_glbl_t bit_field, uint8_t *status)
 Get bit field of STAT_GLBL (0x03) register.
int set_interrupt_mask (reg_bit_int_mask_t bit_field, uint8_t maskBit)
 Set bit field of INTM_GLBL0 (0x04) or INTM_GLBL1 (0x05) register.
int get_interrupt_mask (reg_bit_int_mask_t bit_field, uint8_t *maskBit)
 Get bit field of INTM_GLBL0 (0x04) or INTM_GLBL1 (0x05) register.
int set_cnfg_glbl0 (reg_bit_cnfg_glbl0_t bit_field, uint8_t config)
 Set CNFG_GLBL0 (0x06) register.
int get_cnfg_glbl0 (reg_bit_cnfg_glbl0_t bit_field, uint8_t *config)
 Get CNFG_GLBL0 (0x06) register.
int set_cnfg_glbl1 (reg_bit_cnfg_glbl1_t bit_field, uint8_t config)
 Set CNFG_GLBL1 (0x07) register.
int get_cnfg_glbl1 (reg_bit_cnfg_glbl1_t bit_field, uint8_t *config)
 Get CNFG_GLBL1 (0x07) register.
int set_cnfg_gpio (reg_bit_cnfg_gpio_t bit_field, uint8_t channel, uint8_t config)
 Set either CNFG_GPIO0 (0x08) or CNFG_GPIO1 (0x09).
int get_cnfg_gpio (reg_bit_cnfg_gpio_t bit_field, uint8_t channel, uint8_t *config)
 Get either CNFG_GPIO0 (0x08) or CNFG_GPIO1 (0x09).
int get_cid (void)
 Get bit field of CID (0x10) register.
int set_cnfg_wdt (reg_bit_cnfg_wdt_t bit_field, uint8_t config)
 Set CNFG_WDT (0x17) register.
int get_cnfg_wdt (reg_bit_cnfg_wdt_t bit_field, uint8_t *config)
 Get CNFG_WDT (0x17) register.
int set_cnfg_sbb_top (reg_bit_cnfg_sbb_top_t bit_field, uint8_t config)
 Set CNFG_SBB_TOP (0x28) register.
int get_cnfg_sbb_top (reg_bit_cnfg_sbb_top_t bit_field, uint8_t *config)
 Get CNFG_SBB_TOP (0x28) register.
int set_tv_sbb (uint8_t channel, float voltV)
 Set SIMO Buck-Boost Channel x Target Output Voltage.
int get_tv_sbb (uint8_t channel, float *voltV)
 Get SIMO Buck-Boost Channel x Target Output Voltage.
int set_op_mode (uint8_t channel, decode_op_mode_t mode)
 Set Operation mode of SBBx.
int get_op_mode (uint8_t channel, decode_op_mode_t *mode)
 Get Operation mode of SBBx.
int set_ip_sbb (uint8_t channel, decode_ip_sbb_t ip_sbb)
 Set SIMO Buck-Boost Channel x Peak Current Limit.
int get_ip_sbb (uint8_t channel, decode_ip_sbb_t *ip_sbb)
 Get SIMO Buck-Boost Channel x Peak Current Limit.
int set_ade_sbb (uint8_t channel, decode_ade_sbb_t ade_sbb)
 Set SIMO Buck-Boost Channel x Active-Discharge Enable.
int get_ade_sbb (uint8_t channel, decode_ade_sbb_t *ade_sbb)
 Get SIMO Buck-Boost Channel x Active-Discharge Enable.
int set_en_sbb (uint8_t channel, decode_en_sbb_t en_sbb)
 Set Enable Control for SIMO Buck-Boost Channel x.
int get_en_sbb (uint8_t channel, decode_en_sbb_t *en_sbb)
 Get Enable Control for SIMO Buck-Boost Channel x.
int set_tv_sbb_dvs (float voltV)
 Set SIMO Buck-Boost Channel 0 Target Output Voltage.
int get_tv_sbb_dvs (float *voltV)
 Get SIMO Buck-Boost Channel 0 Target Output Voltage.
int set_tv_ldo (float voltV)
 Set LDO Output Channel x Target Output Voltage.
int get_tv_ldo (float *voltV)
 Get LDO Output Channel x Target Output Voltage.
int set_tv_ofs_ldo (decode_tv_ofs_ldo_t offset)
 Set LDO Output Channel 0 Target Output Voltage.
int get_tv_ofs_ldo (decode_tv_ofs_ldo_t *offset)
 Get LDO Output Channel 0 Target Output Voltage.
int set_en_ldo (decode_en_ldo_t en_ldo)
 Set Enable Control for LDO Channel 0.
int get_en_ldo (decode_en_ldo_t *en_ldo)
 Get Enable Control for LDO Channel 0.
int set_ade_ldo (decode_ade_ldo_t ade_ldo)
 Set LDO Channel 0 Active-Discharge Enable.
int get_ade_ldo (decode_ade_ldo_t *ade_ldo)
 Get LDO Channel 0 Active-Discharge Enable.
int set_ldo_md (decode_ldo_md_t mode)
 Set Operation mode of LDO0.
int get_ldo_md (decode_ldo_md_t *mode)
 Get Operation mode of LDO0.
int irq_disable_all ()
 Disable all interrupts.
void set_interrupt_handler (reg_bit_int_glbl_t id, interrupt_handler_function func, void *cb)
 Set Interrupt Handler for a Specific Interrupt ID.

Detailed Description

MAX77643_2 Ultra Configurable PMIC Featuring 93% Peak Efficiency Single-Inductor, 3-Output Buck-Boost, 1-LDO for Long Battery Life Applications.

The MAX77643_2/MAX77643_2 provide power supply solutions for low-power applications where size and efficiency are critical. The MAX77643_2's SIMO and LDO output voltages are individually programmable through resistors.

Definition at line 58 of file MAX77643_2.h.


Member Typedef Documentation

typedef void(* interrupt_handler_function)(void *)

Function pointer type to interrupt handler function.

Definition at line 125 of file MAX77643_2.h.


Member Enumeration Documentation

Register Configuration.

  • Register : CNFG_LDO0_B (0x39)
  • Bit Fields : [3]
  • Default : 0x0
  • Description : LDO Channel 0 Active-Discharge Enable.

Definition at line 815 of file MAX77643_2.h.

Register Configuration.

  • Register : CNFG_SBB0_B (0x2A), CNFG_SBB1_B (0x2C) and CNFG_SBB2_B (0x2E)
  • Bit Fields : [3]
  • Default : 0x0
  • Description : SIMO Buck-Boost Channel 0, 1 or 2 Active-Discharge Enable.

Definition at line 597 of file MAX77643_2.h.

Register Configuration.

  • Register : CNFG_LDO0_B (0x39)
  • Bit Fields : [2:0]
  • Default : 0x0
  • Description : Enable Control for LDO 0.

Definition at line 777 of file MAX77643_2.h.

Register Configuration.

  • Register : CNFG_SBB0_B (0x2A), CNFG_SBB1_B (0x2C) and CNFG_SBB2_B (0x2E)
  • Bit Fields : [2:0]
  • Default : 0x0
  • Description : Enable Control for SIMO Buck-Boost Channel 0, 1 or 2.

Definition at line 631 of file MAX77643_2.h.

Register Configuration.

  • Register : CNFG_SBB0_B (0x2A), CNFG_SBB1_B (0x2C) and CNFG_SBB2_B (0x2E)
  • Bit Fields : [5:4]
  • Default : 0x0
  • Description : SIMO Buck-Boost Channel 0, 1 or 2 Peak Current Limit.

Definition at line 561 of file MAX77643_2.h.

Register Configuration.

  • Register : CNFG_LDO0_B (0x39)
  • Bit Fields : [4]
  • Default : 0x0
  • Description : Operation mode of LDO 0.

Definition at line 847 of file MAX77643_2.h.

Register Configuration.

  • Register : CNFG_SBB0_B (0x2A), CNFG_SBB1_B (0x2C) and CNFG_SBB2_B (0x2E)
  • Bit Fields : [7:6]
  • Default : 0x0
  • Description : Operation mode of SBB0, 1 or 2.

Definition at line 525 of file MAX77643_2.h.

Register Configuration.

  • Register : CNFG_LDO0_A (0x38)
  • Bit Fields : [7]
  • Default : 0x0
  • Description : SIMO Buck-Boost Channel 0 Peak Current Limit.

Definition at line 739 of file MAX77643_2.h.

Register Configuration.

  • Register : CNFG_GLBL0 (0x06)
  • Bit Fields : [7:0]
  • Default : 0x0
  • Description : Event Recorder Flags.

Definition at line 298 of file MAX77643_2.h.

Register Configuration.

  • Register : CNFG_GLBL1 (0x07)
  • Bit Fields : [7:0]
  • Default : 0x0
  • Description : Event Recorder Flags.

Definition at line 336 of file MAX77643_2.h.

Register Configuration.

  • Register : CNFG_GPIO0 (0x08) or CNFG_GPIO1 (0x09)
  • Bit Fields : [7:0]
  • Default : 0x0
  • Description : Event Recorder Flags.

Definition at line 371 of file MAX77643_2.h.

Register Configuration.

  • Register : CNFG_SBB_TOP (0x28)
  • Bit Fields : [7:0]
  • Default : 0x0
  • Description : Watchdog Timer Configuration.

Definition at line 461 of file MAX77643_2.h.

Register Configuration.

  • Register : CNFG_WDT (0x17)
  • Bit Fields : [7:0]
  • Default : 0x0
  • Description : Watchdog Timer Configuration.

Definition at line 421 of file MAX77643_2.h.

Register Configuration.

  • Register : ERCFLAG (0x02)
  • Bit Fields : [7:0]
  • Default : 0x0
  • Description : Event Recorder Flags.

Definition at line 185 of file MAX77643_2.h.

Register Configuration.

All Interrupt Flags combined from INT_GLBL0 (0x00) and INT_GLBL1(0x01)

  • Register : INT_GLBL0 (0x00) and INT_GLBL1(0x01)
  • Bit Fields :
  • Default : 0x0
  • Description : Enumerated interrupts.

Definition at line 157 of file MAX77643_2.h.

Register Configuration.

  • Register : INTM_GLBL0 (0x04) and INTM_GLBL1 (0x05)
  • Bit Fields : [7:0]
  • Default : 0x0
  • Description : All interrupt mask bits.

Definition at line 248 of file MAX77643_2.h.

Register Configuration.

  • Register : STAT_GLBL (0x03)
  • Bit Fields : [7:0]
  • Default : 0x0
  • Description : Global Status.

Definition at line 218 of file MAX77643_2.h.


Constructor & Destructor Documentation

MAX77643_2 ( I2C *  i2c,
PinName  IRQPin = NC 
)

MAX77643_2 constructor.

Definition at line 41 of file MAX77643_2.cpp.

~MAX77643_2 (  )

MAX77643_2 destructor.

Definition at line 62 of file MAX77643_2.cpp.


Member Function Documentation

int get_ade_ldo ( decode_ade_ldo_t ade_ldo )

Get LDO Channel 0 Active-Discharge Enable.

Parameters:
[out]ade_ldoLDO channel 0 active-discharge enable bit to be read.
Returns:
0 on success, error code on failure.

Definition at line 1145 of file MAX77643_2.cpp.

int get_ade_sbb ( uint8_t  channel,
decode_ade_sbb_t ade_sbb 
)

Get SIMO Buck-Boost Channel x Active-Discharge Enable.

Parameters:
[in]channelChannel number: 0, 1 or 2.
[out]ade_sbbSIMO buck-boost channel 2 active-discharge enable bit to be read.
Returns:
0 on success, error code on failure.

Definition at line 929 of file MAX77643_2.cpp.

int get_cid ( void   )

Get bit field of CID (0x10) register.

Parameters:
[in]configRegister bit field to be written
Returns:
CID on success, error code on failure.

Definition at line 612 of file MAX77643_2.cpp.

int get_cnfg_glbl0 ( reg_bit_cnfg_glbl0_t  bit_field,
uint8_t *  config 
)

Get CNFG_GLBL0 (0x06) register.

Parameters:
[in]bit_fieldRegister bit field to be written.
[out]configPointer of value to be read.
Returns:
0 on success, error code on failure.

Definition at line 380 of file MAX77643_2.cpp.

int get_cnfg_glbl1 ( reg_bit_cnfg_glbl1_t  bit_field,
uint8_t *  config 
)

Get CNFG_GLBL1 (0x07) register.

Parameters:
[in]bit_fieldRegister bit field to be written.
[out]configPointer of value to be read.
Returns:
0 on success, error code on failure.

Definition at line 440 of file MAX77643_2.cpp.

int get_cnfg_gpio ( reg_bit_cnfg_gpio_t  bit_field,
uint8_t  channel,
uint8_t *  config 
)

Get either CNFG_GPIO0 (0x08) or CNFG_GPIO1 (0x09).

Parameters:
[in]bit_fieldRegister bit field to be written.
[in]channelChannel number: 0 or 1
[out]configPointer of value to be read.
Returns:
0 on success, error code on failure.

Definition at line 539 of file MAX77643_2.cpp.

int get_cnfg_sbb_top ( reg_bit_cnfg_sbb_top_t  bit_field,
uint8_t *  config 
)

Get CNFG_SBB_TOP (0x28) register.

Parameters:
[in]bit_fieldRegister bit field to be written.
[out]configConfiguration value to be read.
Returns:
0 on success, error code on failure.

Definition at line 712 of file MAX77643_2.cpp.

int get_cnfg_wdt ( reg_bit_cnfg_wdt_t  bit_field,
uint8_t *  config 
)

Get CNFG_WDT (0x17) register.

Parameters:
[in]bit_fieldRegister bit field to be written.
[out]configPointer of value to be read.
Returns:
0 on success, error code on failure.

Definition at line 655 of file MAX77643_2.cpp.

int get_en_ldo ( decode_en_ldo_t en_ldo )

Get Enable Control for LDO Channel 0.

Parameters:
[out]en_ldoEnable control for LDO channel x field to be read.
Returns:
0 on success, error code on failure.

Definition at line 1123 of file MAX77643_2.cpp.

int get_en_sbb ( uint8_t  channel,
decode_en_sbb_t en_sbb 
)

Get Enable Control for SIMO Buck-Boost Channel x.

Parameters:
[in]channelChannel number: 0, 1 or 2.
[out]en_sbbEnable control for SIMO buck-boost channel x field to be read.
Returns:
0 on success, error code on failure.

Definition at line 983 of file MAX77643_2.cpp.

int get_ercflag ( reg_bit_ercflag_t  bit_field,
uint8_t *  flag 
)

Get bit field of ERCFLAG (0x02) register.

Parameters:
[in]bit_fieldERCFLAG register bit field to be written.
[out]flagPointer to save result of ercglag bit states. For individual bit 0x0: ERCFLAG has not occurred, 0x1: ERCFLAG has occurred.
Returns:
0 on success, error code on failure.

Definition at line 122 of file MAX77643_2.cpp.

int get_interrupt_mask ( reg_bit_int_mask_t  bit_field,
uint8_t *  maskBit 
)

Get bit field of INTM_GLBL0 (0x04) or INTM_GLBL1 (0x05) register.

Parameters:
[in]bit_fieldRegister bit field to be written.
[out]maskBit0x0: Interrupt is unmasked, 0x1: Interrupt is masked.
Returns:
0 on success, error code on failure.

Definition at line 276 of file MAX77643_2.cpp.

int get_ip_sbb ( uint8_t  channel,
decode_ip_sbb_t ip_sbb 
)

Get SIMO Buck-Boost Channel x Peak Current Limit.

Parameters:
[in]channelChannel number: 0, 1 or 2.
[out]ip_sbbSIMO buck-boost channel 2 peak current limit field to be read.
Returns:
0 on success, error code on failure.

Definition at line 875 of file MAX77643_2.cpp.

int get_ldo_md ( decode_ldo_md_t mode )

Get Operation mode of LDO0.

Parameters:
[out]modeOperation mode of LDO0 bit to be read.
Returns:
0 on success, error code on failure.

Definition at line 1167 of file MAX77643_2.cpp.

int get_op_mode ( uint8_t  channel,
decode_op_mode_t mode 
)

Get Operation mode of SBBx.

Parameters:
[in]channelChannel number: 0, 1 or 2.
[out]modeOperation mode of SBBx bit to be read.
Returns:
0 on success, error code on failure.

Definition at line 821 of file MAX77643_2.cpp.

int get_stat_glbl ( reg_bit_stat_glbl_t  bit_field,
uint8_t *  status 
)

Get bit field of STAT_GLBL (0x03) register.

Parameters:
[in]bit_fieldSTAT_GLBL register bit field to be written.
[out]statusPointer to save result of Status Global bit state.
Returns:
0 on success, error code on failure.

Definition at line 164 of file MAX77643_2.cpp.

int get_tv_ldo ( float *  voltV )

Get LDO Output Channel x Target Output Voltage.

Bit 6:0. CNFG_LDO0_A (0x38)

Parameters:
[out]voltVLDO Output Channel x target output voltage field to be read. LDOx = 500mV + 25mV x TV_LDOx[6:0] 0.500V, 0.525V, 0.550V, 0.575V, 0.600V, 0.625V, 0.650V, 0.675V, 0.700V, ... 3.650, 3.675.

When TV_LDO[7] = 0, TV_LDO[6:0] sets the LDO's output voltage range from 0.5V to 3.675V. When TV_LDO[7] = 1, TV_LDO[6:0] sets the LDO's output voltage from 1.825V to 5V.

Returns:
0 on success, error code on failure.

Definition at line 1071 of file MAX77643_2.cpp.

int get_tv_ofs_ldo ( decode_tv_ofs_ldo_t offset )

Get LDO Output Channel 0 Target Output Voltage.

Bit 7. CNFG_LDO0_A (0x38)

Parameters:
[out]offsetLDO Output Channel 0 target output voltage offset field to be read. 0b0 = No Offset 0b1 = 1.325V Offset
Returns:
0 on success, error code on failure.

Definition at line 1101 of file MAX77643_2.cpp.

int get_tv_sbb ( uint8_t  channel,
float *  voltV 
)

Get SIMO Buck-Boost Channel x Target Output Voltage.

CNFG_SBB0_A (0x29), CNFG_SBB1_A (0x2B) and CNFG_SBB2_A (0x2D)

Parameters:
[in]channelChannel number: 0, 1 or 2.
[out]voltVSIMO buck-boost channel x target output voltage field to be read. SBBx = 500mV + 25mV x TV_SBBx[7:0] 0.500V, 0.525V, 0.550V, 0.575V, 0.600V, 0.625V, 0.650V, 0.675V, 0.700V, ... 5.425V, 5.450V, 5.475V, 5.500V.
Returns:
0 on success, error code on failure.

Definition at line 765 of file MAX77643_2.cpp.

int get_tv_sbb_dvs ( float *  voltV )

Get SIMO Buck-Boost Channel 0 Target Output Voltage.

Bit 7:0 of CNFG_DVS_SBB0_A (0x2F).

Parameters:
[out]voltVSIMO buck-boost channel 0 target output voltage field to be read. SBBx = 500mV + 25mV x TV_SBBx[7:0] 0.500V, 0.525V, 0.550V, 0.575V, 0.600V, 0.625V, 0.650V, 0.675V, 0.700V, ... 5.425V, 5.450V, 5.475V, 5.500V.
Returns:
0 on success, error code on failure.

Definition at line 1028 of file MAX77643_2.cpp.

int irq_disable_all (  )

Disable all interrupts.

Returns:
0 on success, error code on failure

Definition at line 1180 of file MAX77643_2.cpp.

int read_register ( uint8_t  reg,
uint8_t *  value 
)

Read from a register.

Parameters:
[in]regAddress of a register to be written.
[out]valuePointer to save result value.
Returns:
0 on success, negative error code on failure.

Definition at line 74 of file MAX77643_2.cpp.

int set_ade_ldo ( decode_ade_ldo_t  ade_ldo )

Set LDO Channel 0 Active-Discharge Enable.

Parameters:
[in]ade_ldoLDO channel 0 active-discharge enable bit to be written.
Returns:
0 on success, error code on failure.

Definition at line 1136 of file MAX77643_2.cpp.

int set_ade_sbb ( uint8_t  channel,
decode_ade_sbb_t  ade_sbb 
)

Set SIMO Buck-Boost Channel x Active-Discharge Enable.

Parameters:
[in]channelChannel number: 0, 1 or 2.
[in]ade_sbbSIMO buck-boost channel 2 active-discharge enable bit to be written.
Returns:
0 on success, error code on failure.

Definition at line 907 of file MAX77643_2.cpp.

int set_cnfg_glbl0 ( reg_bit_cnfg_glbl0_t  bit_field,
uint8_t  config 
)

Set CNFG_GLBL0 (0x06) register.

Parameters:
[in]bit_fieldRegister bit field to be written.
[in]configRegister bit field to be written.
Returns:
0 on success, error code on failure.

Definition at line 344 of file MAX77643_2.cpp.

int set_cnfg_glbl1 ( reg_bit_cnfg_glbl1_t  bit_field,
uint8_t  config 
)

Set CNFG_GLBL1 (0x07) register.

Parameters:
[in]bit_fieldRegister bit field to be written.
[in]configRegister bit field to be written.
Returns:
0 on success, error code on failure.

Definition at line 416 of file MAX77643_2.cpp.

int set_cnfg_gpio ( reg_bit_cnfg_gpio_t  bit_field,
uint8_t  channel,
uint8_t  config 
)

Set either CNFG_GPIO0 (0x08) or CNFG_GPIO1 (0x09).

Parameters:
[in]bit_fieldRegister bit field to be written.
[in]channelChannel number: 0 or 1
[in]configRegister bit field to be written.
Returns:
0 on success, error code on failure.

Definition at line 464 of file MAX77643_2.cpp.

int set_cnfg_sbb_top ( reg_bit_cnfg_sbb_top_t  bit_field,
uint8_t  config 
)

Set CNFG_SBB_TOP (0x28) register.

Parameters:
[in]bit_fieldRegister bit field to be written.
[in]configConfiguration value to be written.
Returns:
0 on success, error code on failure.

Definition at line 688 of file MAX77643_2.cpp.

int set_cnfg_wdt ( reg_bit_cnfg_wdt_t  bit_field,
uint8_t  config 
)

Set CNFG_WDT (0x17) register.

Parameters:
[in]bit_fieldRegister bit field to be written.
[in]configField value to be written.
Returns:
0 on success, error code on failure.

Definition at line 622 of file MAX77643_2.cpp.

int set_en_ldo ( decode_en_ldo_t  en_ldo )

Set Enable Control for LDO Channel 0.

Parameters:
[in]en_ldoEnable control for LDO channel 0 field to be written.
Returns:
0 on success, error code on failure.

Definition at line 1114 of file MAX77643_2.cpp.

int set_en_sbb ( uint8_t  channel,
decode_en_sbb_t  en_sbb 
)

Set Enable Control for SIMO Buck-Boost Channel x.

Parameters:
[in]channelChannel number: 0, 1 or 2.
[in]en_sbbEnable control for SIMO buck-boost channel x field to be written.
Returns:
0 on success, error code on failure.

Definition at line 961 of file MAX77643_2.cpp.

void set_interrupt_handler ( reg_bit_int_glbl_t  id,
interrupt_handler_function  func,
void *  cb 
)

Set Interrupt Handler for a Specific Interrupt ID.

Parameters:
[in]idreg_bit_reg_bit_int_glbl_t id, one of INTR_ID_*.
[in]funcInterrupt handler function.
[in]cbInterrupt handler data.

Definition at line 1205 of file MAX77643_2.cpp.

int set_interrupt_mask ( reg_bit_int_mask_t  bit_field,
uint8_t  maskBit 
)

Set bit field of INTM_GLBL0 (0x04) or INTM_GLBL1 (0x05) register.

Parameters:
[in]bit_fieldRegister bit field to be set.
[out]maskBit0x0: Interrupt is unmasked, 0x1: Interrupt is masked.
Returns:
0 on success, error code on failure.

Definition at line 203 of file MAX77643_2.cpp.

int set_ip_sbb ( uint8_t  channel,
decode_ip_sbb_t  ip_sbb 
)

Set SIMO Buck-Boost Channel x Peak Current Limit.

Parameters:
[in]channelChannel number: 0, 1 or 2.
[in]ip_sbbSIMO buck-boost channel 2 peak current limit field to be written.
Returns:
0 on success, error code on failure.

Definition at line 853 of file MAX77643_2.cpp.

int set_ldo_md ( decode_ldo_md_t  mode )

Set Operation mode of LDO0.

Parameters:
[in]modeOperation mode of LDO0 bit to be written.
Returns:
0 on success, error code on failure.

Definition at line 1158 of file MAX77643_2.cpp.

int set_op_mode ( uint8_t  channel,
decode_op_mode_t  mode 
)

Set Operation mode of SBBx.

Parameters:
[in]channelChannel number: 0, 1 or 2.
[in]modeOperation mode of SBBx bit to be written.
Returns:
0 on success, error code on failure.

Definition at line 799 of file MAX77643_2.cpp.

int set_tv_ldo ( float  voltV )

Set LDO Output Channel x Target Output Voltage.

Bit 6:0. CNFG_LDO0_A (0x38)

Parameters:
[in]voltVLDO Output Channel x target output voltage field to be read. LDOx = 500mV + 25mV x TV_LDOx[6:0] 0.500V, 0.525V, 0.550V, 0.575V, 0.600V, 0.625V, 0.650V, 0.675V, 0.700V, ... 3.650, 3.675.

When TV_LDO[7] = 0, TV_LDO[6:0] sets the LDO's output voltage range from 0.5V to 3.675V. When TV_LDO[7] = 1, TV_LDO[6:0] sets the LDO's output voltage from 1.825V to 5V.

Returns:
0 on success, error code on failure.

Definition at line 1045 of file MAX77643_2.cpp.

int set_tv_ofs_ldo ( decode_tv_ofs_ldo_t  offset )

Set LDO Output Channel 0 Target Output Voltage.

Bit 7. CNFG_LDO0_A (0x38)

Parameters:
[in]offsetLDO Output Channel 0 target output voltage offset field to be read. 0b0 = No Offset 0b1 = 1.325V Offset
Returns:
0 on success, error code on failure.

Definition at line 1092 of file MAX77643_2.cpp.

int set_tv_sbb ( uint8_t  channel,
float  voltV 
)

Set SIMO Buck-Boost Channel x Target Output Voltage.

CNFG_SBB0_A (0x29), CNFG_SBB1_A (0x2B) and CNFG_SBB2_A (0x2D)

Parameters:
[in]channelChannel number: 0, 1 or 2.
[in]voltVSIMO buck-boost channel x target output voltage field to be written. SBBx = 500mV + 25mV x TV_SBBx[7:0] 0.500V, 0.525V, 0.550V, 0.575V, 0.600V, 0.625V, 0.650V, 0.675V, 0.700V, ... 5.425V, 5.450V, 5.475V, 5.500V.
Returns:
0 on success, error code on failure.

Definition at line 736 of file MAX77643_2.cpp.

int set_tv_sbb_dvs ( float  voltV )

Set SIMO Buck-Boost Channel 0 Target Output Voltage.

Bit 7:0 of CNFG_DVS_SBB0_A (0x2F).

Parameters:
[in]voltVSIMO buck-boost channel 0 target output voltage field to be written. SBBx = 500mV + 25mV x TV_SBBx[7:0] 0.500V, 0.525V, 0.550V, 0.575V, 0.600V, 0.625V, 0.650V, 0.675V, 0.700V, ... 5.425V, 5.450V, 5.475V, 5.500V.
Returns:
0 on success, error code on failure.

Definition at line 1013 of file MAX77643_2.cpp.

int write_register ( uint8_t  reg,
const uint8_t *  value 
)

Write to a register.

Parameters:
[in]regAddress of a register to be written.
[out]valuePointer of value to be written to register.
Returns:
0 on success, negative error code on failure.

Definition at line 91 of file MAX77643_2.cpp.