Comments (3)
Our I2C implementation needs to
You'd have to implement the I2cMaster Transaction state machine on top of a I2c Transaction state machine and then provide 8 access ports to it.
You'd then wrap this in a shim layer like GpioExpander, so you can bind the Tca9548a object to a static type.
modm::Tca9548a<modm::platform::I2cMaster2> multiplexor;
using Port0 = modm::tca9548a::Multiplexor<multiplexor, 0>;
You'll most likely need to consider atomics at this point, since your Tca9548a implementation will have to be synced with its interrupts. Don't worry about AVRs for this, just use std::atomics and enable the driver only for Cortex-M.
from modm.
Sounds like fun, working on it!
from modm.
You'll most likely need to consider atomics at this point, since your Tca9548a implementation will have to be synced with its interrupts
Prefixing every I2C transaction with a transaction addressed to the PCA to select the channel seems to work. The underlying I2C master is queuing I2C transactions (and not reordering!) and sending them in order.
Todos:
- Make PCA9548 a template parameter to
i2c_multiplexer.hpp
- Discuss the need for
RF_CALL_BLOCKING
- Only return true in
I2cMultiplexerChannel
when both transactions were queued successfully. - Use information of current channel to avoid idempotent channel selections.
from modm.
Related Issues (20)
- STM32F469I-DISCO display does not work on newer board revision (B-08) HOT 1
- [math] math::Matrix class size limitation HOT 1
- [math] MovingAverage with long history HOT 1
- STM32G4: modm interface hides some of Timer features HOT 3
- Resumable functions don't compile with gcc13 HOT 1
- Unittest failing fdcan_test on Nucleo-G474RE
- monochrome graphic display won't compile - vector ? HOT 4
- [fiber] multi stack size ? HOT 5
- SAMD51/SAME5x cache not enabled? HOT 5
- STM32G0B1 currently black listed HOT 2
- Placement of data section in wrong memory for STM32H7 HOT 1
- Segmentation fault when building documentation files HOT 3
- Heap not implemented. HOT 6
- macOS arm-gcc-bin@12 from osx-cross failes HOT 3
- [stm32] Interrupt handler indirection causes unnecessary latency HOT 1
- STM32F103 PB4 not accessible / remapping not part of modm HOT 3
- Debugger (arm-none-eabi-gdb) not working on up-to-date linux systems HOT 6
- Problem with SPI Mode 3 on STM32F469 HOT 3
- Scons program fails with recent development builds of OpenOCD HOT 6
- Update Website Installation Guide HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modm.