BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
28531fa7
Commit
28531fa7
authored
Nov 19, 2016
by
Ashish Syal
Committed by
David Frey
Nov 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i2c update
parent
5893ed05
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
batteryReading.c
...ryChargerReading/batteryReadingComponent/batteryReading.c
+16
-0
No files found.
samples/tutorials/hardwareInterfaces/i2c/BatteryChargerReading/batteryReadingComponent/batteryReading.c
View file @
28531fa7
...
...
@@ -199,27 +199,43 @@ static void ReadBatteryChargerRegister
SmbusReadReg
(
0
,
0x6B
,
0x00
,
&
RegisterReading
);
LE_DEBUG
(
"Input Source Control value is %d"
,
RegisterReading
);
sleep
(
1
);
SmbusReadReg
(
0
,
0x6B
,
0x01
,
&
RegisterReading
);
LE_DEBUG
(
"Power-On Configuration Register value is %d"
,
RegisterReading
);
sleep
(
1
);
SmbusReadReg
(
0
,
0x6B
,
0x02
,
&
RegisterReading
);
LE_DEBUG
(
"Charge Current Control Register value is %d"
,
RegisterReading
);
sleep
(
1
);
SmbusReadReg
(
0
,
0x6B
,
0x03
,
&
RegisterReading
);
LE_DEBUG
(
" Pre-Charge/Termination Current Control Register value is %d"
,
RegisterReading
);
sleep
(
1
);
SmbusReadReg
(
0
,
0x6B
,
0x04
,
&
RegisterReading
);
LE_DEBUG
(
"Charge Voltage Control Register value is %d"
,
RegisterReading
);
sleep
(
1
);
SmbusReadReg
(
0
,
0x6B
,
0x05
,
&
RegisterReading
);
LE_DEBUG
(
"Charge Termination/Timer Control Register value is %d"
,
RegisterReading
);
sleep
(
1
);
SmbusReadReg
(
0
,
0x6B
,
0x06
,
&
RegisterReading
);
LE_DEBUG
(
"Thermal Regulation Control Register value is %d"
,
RegisterReading
);
sleep
(
1
);
SmbusReadReg
(
0
,
0x6B
,
0x07
,
&
RegisterReading
);
LE_DEBUG
(
"Misc Operation Control Register value is %d"
,
RegisterReading
);
sleep
(
1
);
SmbusReadReg
(
0
,
0x6B
,
0x08
,
&
RegisterReading
);
LE_DEBUG
(
"System Status Register value is %d"
,
RegisterReading
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment