Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bpm-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
bpm
bpm-sw
Commits
f9f5a0f8
Commit
f9f5a0f8
authored
Aug 08, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sm_io/protocols/*: use offset/offset_size in I2C protocol
parent
cbc519c7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
109 deletions
+82
-109
sm_pr_i2c.h
include/sm_pr_i2c.h
+1
-6
sm_pr_i2c.c
src/sm_io/protocols/ops/sm_pr_i2c.c
+81
-103
No files found.
include/sm_pr_i2c.h
View file @
f9f5a0f8
...
...
@@ -25,7 +25,7 @@ typedef enum {
}
i2c_mode_e
;
/* Creates a new instance of the proto_i2c */
smpr_i2c_t
*
smpr_i2c_new
(
uint32_t
rep_start
,
uint32_t
trans_size
,
uint32_t
addr
);
smpr_i2c_t
*
smpr_i2c_new
(
uint32_t
rep_start
,
uint32_t
addr
);
/* Destroy an instance of the i2c */
smpr_err_e
smpr_i2c_destroy
(
smpr_i2c_t
**
self_p
);
...
...
@@ -34,11 +34,6 @@ smpr_err_e smpr_i2c_set_rep_start (smpr_i2c_t *self, uint32_t rep_start);
/* Get I2C rep_start parameter */
uint32_t
smpr_i2c_get_rep_start
(
smpr_i2c_t
*
self
);
/* Set I2C trans_size parameter */
smpr_err_e
smpr_i2c_set_trans_size
(
smpr_i2c_t
*
self
,
uint32_t
trans_size
);
/* Get I2C trans_size parameter */
uint32_t
smpr_i2c_get_trans_size
(
smpr_i2c_t
*
self
);
/* Set I2C addr parameter */
smpr_err_e
smpr_i2c_set_addr
(
smpr_i2c_t
*
self
,
uint32_t
addr
);
/* Get I2C addr parameter */
...
...
src/sm_io/protocols/ops/sm_pr_i2c.c
View file @
f9f5a0f8
This diff is collapsed.
Click to expand it.
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