Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Skyward Boardcore
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
Nicolò Caruso
Skyward Boardcore
Commits
132166cf
Commit
132166cf
authored
1 year ago
by
Emilio Corigliano
Committed by
Matteo Pignataro
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[I2C] I2CSlaveConfig now has default parameters
parent
4f2a85b0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/shared/drivers/i2c/I2CDriver.h
+6
-4
6 additions, 4 deletions
src/shared/drivers/i2c/I2CDriver.h
with
6 additions
and
4 deletions
src/shared/drivers/i2c/I2CDriver.h
+
6
−
4
View file @
132166cf
...
...
@@ -106,9 +106,11 @@ public:
slaveAddress
;
///< Slave address without shifts (in BIT7 addressing
///< |9-bit unused|7-bit address|; in BIT10
///< addressing |6-bit unused|10-bit address|).
I2CDriver
::
Addressing
addressing
;
///< Addressing mode of the device.
I2CDriver
::
Speed
speed
;
///< Speed mode of the communication.
bool
MSBFirst
;
///< Registers with lower values are the MSB of
I2CDriver
::
Addressing
addressing
=
I2CDriver
::
Addressing
::
BIT7
;
///< Addressing mode of the device.
I2CDriver
::
Speed
speed
=
I2CDriver
::
Speed
::
MAX_SPEED
;
///< Speed mode of the communication.
bool
MSBFirst
=
false
;
///< Registers with lower values are the MSB of
///< multi-byte registers
}
I2CSlaveConfig
;
...
...
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