initial commit for hsp3 with secure authenicator
Fork of max20303 by
Diff: MAX20303.cpp
- Revision:
- 2:912b89c40b72
- Parent:
- 1:0333f77c665f
--- a/MAX20303.cpp Wed Apr 25 09:52:48 2018 +0300 +++ b/MAX20303.cpp Fri Aug 10 23:22:45 2018 +0000 @@ -63,6 +63,20 @@ return ret; } +int MAX20303::LDO2Config() +{ + int32_t ret = 0; + uint8_t val; + appcmdoutvalue_ = 0x42; + appdatainoutbuffer_[0] = 0x01; + appdatainoutbuffer_[1] = 0x15; // 0.9V + (0.1V * number) = 3V + AppWrite(2); + + return ret; +} + + + //****************************************************************************** int MAX20303::writeReg(registers_t reg, uint8_t value) {