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
Model registry
Analyze
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
Avionics
Software Development
Skyward Boardcore
Commits
ae96279b
Commit
ae96279b
authored
1 year ago
by
Emilio Corigliano
Browse files
Options
Downloads
Patches
Plain Diff
[I2C] I2CSlaveConfig now has default parameters
parent
c0c732f5
No related branches found
No related tags found
1 merge request
!196
[I2C] I2CSlaveConfig now has default parameters
Pipeline
#7226
failed
1 year ago
Stage: build
Stage: test
Stage: lint
Stage: documentation
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/shared/drivers/i2c/I2CDriver.h
+13
-8
13 additions, 8 deletions
src/shared/drivers/i2c/I2CDriver.h
with
13 additions
and
8 deletions
src/shared/drivers/i2c/I2CDriver.h
+
13
−
8
View file @
ae96279b
...
...
@@ -102,14 +102,19 @@ public:
*/
typedef
struct
{
uint16_t
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
///< multi-byte registers
///< Slave address without shifts:
///< - BIT7 addressing |9-bit unused|7-bit address|
///< - BIT10 addressing |6-bit unused|10-bit address|
uint16_t
slaveAddress
;
///< Addressing mode of the device.
I2CDriver
::
Addressing
addressing
=
I2CDriver
::
Addressing
::
BIT7
;
///< Speed mode of the communication.
I2CDriver
::
Speed
speed
=
I2CDriver
::
Speed
::
MAX_SPEED
;
///< Registers with lower values are the MSB of multi-byte registers
bool
MSBFirst
=
false
;
}
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