Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmytro Levit
Software
Commits
495a74eb
Commit
495a74eb
authored
6 years ago
by
Patrick Robbe
Browse files
Options
Downloads
Patches
Plain Diff
Add i2c header
parent
b140d4fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Lib/inc/minipods/i2cDriver.h
+19
-0
19 additions, 0 deletions
Lib/inc/minipods/i2cDriver.h
with
19 additions
and
0 deletions
Lib/inc/minipods/i2cDriver.h
0 → 100644
+
19
−
0
View file @
495a74eb
/****************************************************************************************//**
* \file i2cDriver.h
*
* \brief This unit is the includes for a simple driver library for I2C bus based
on the Open-Core I2C-master.
*
* \author PYD : 12/6/2013
* \version 0.1
* \date 12/6/2013
* PYD : 12/6/2013 initial version
* PYD : 12/6/2015 add a second bus for PCIe40
*//******************************************************************************************/
// USER ORIENTED PROCEDURES FOR EXTERNAL USE
int
i2c_init
(
int
dev
,
int
bus
,
unsigned
inCLK
,
unsigned
SCLfreq
);
void
i2c_getInit
(
int
dev
,
int
bus
,
unsigned
*
inCLK
,
unsigned
*
SCLfreq
);
int
i2c_readMem
(
int
dev
,
int
bus
,
unsigned
slaveAdd
,
unsigned
regIndex
,
unsigned
*
val
);
int
i2c_writeMem
(
int
dev
,
int
bus
,
unsigned
slaveAdd
,
unsigned
regIndex
,
unsigned
*
val
);
int
i2c_multReadMem
(
int
dev
,
int
bus
,
unsigned
slaveAdd
,
unsigned
regIndex
,
int
nb
,
unsigned
**
data
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment