This is a sample library for the MAX77650 incorporated with the MAX32620FTHR development board.
Fork of max77650_charger_sample by
Revision 1:324b6205cdd8, committed 2018-08-14
- Comitter:
- fneirab
- Date:
- Tue Aug 14 16:57:16 2018 +0000
- Parent:
- 0:0bb9daf44568
- Commit message:
- changes to made public with Charger functions with LED indicator
Changed in this revision
max77650.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/max77650.h Tue Jun 19 20:57:15 2018 +0000 +++ b/max77650.h Tue Aug 14 16:57:16 2018 +0000 @@ -77,9 +77,7 @@ */ // Definitions -//#define SLAVE_ADDR 0x48 -#define I2C_W_ADRS 0x90 -#define I2C_R_ADRS 0x91 + #define DEVICE_ID 0x00 #define NUM_INTERRUPTS 12 @@ -89,11 +87,17 @@ { public: + + ///8-bit write address + static const int I2C_W_ADRS = 0x90; + ///8-bit read address + static const int I2C_R_ADRS = 0x91; + /** * @brief Register Addresses * @details Enumerated MAX77650 register addresses * - */ + */ enum registers_t { INT_GLBL, ///< Global Interrupt INT_CHG, ///< Charger Interrupt @@ -192,7 +196,7 @@ * * @parameters reg_addr Register to read */ - int disblCharger(); //Only for Mobility Demo BU + int disblCharger();