summaryrefslogtreecommitdiffstats
path: root/src/devices/mode/oneshot.rs
Commit message (Collapse)AuthorAgeFilesLines
* Modify to use asyncasyncTomasz Kramkowski2024-12-081-7/+10
| | | | | | | | | | | | A changeover from embedded_hal::i2c::I2c to embedded_hal_async::i2c::I2c including changes to all the relevant functions into async functions. Tests have been updated to work using futures-test and embedded-hal-mock with the embedded-hal-async feature. Examples have been kept the same meaning they no longer compile. Currently it doesn't _seem_ like the linux embedded hal can do async i2c so maybe these should be re-written to use embassy?
* Improve documentation. (#32)Markus Reiter2024-11-231-6/+7
| | | | | * Use `non_exhaustive`. * Improve docs.
* Remove `DynamicOneShot` trait. (#19)Markus Reiter2024-06-101-34/+18
| | | | | * Remove `DynamicOneShot` trait. * Update changelog.
* Remove `I2cInterface`. (#20)Markus Reiter2024-01-191-12/+12
| | | | | | | | | * Merge `ReadData` and `WriteData` traits. * Remove `I2cInterface`. * Update changelog. * Fix links.
* Update to `embedded-hal` 1.0.Markus Reiter2024-01-191-31/+31
|
* Add value-based one-shot trait to ease driver usage in functionsDiego Barrios Romero2021-07-291-4/+16
|
* Remove unused importDiego Barrios Romero2020-06-211-1/+0
|
* Use edition 2018Diego Barrios Romero2020-06-211-7/+8
|
* Format codeDiego Barrios Romero2019-03-311-2/+8
|
* Integrate mode change into `into...` methodsDiego Barrios Romero2019-03-311-3/+9
|
* Code formattingDiego Barrios Romero2018-11-211-7/+8
|
* Make function to read if a measurement is in progress publicDiego Barrios Romero2018-11-211-7/+0
|
* Add method to start continuous conversionsDiego Barrios Romero2018-11-201-3/+1
|
* Improve documentation of valuesDiego Barrios Romero2018-11-171-0/+6
|
* Add FSR to device structDiego Barrios Romero2018-11-171-0/+1
|
* Avoid unnecessary typeDiego Barrios Romero2018-11-111-1/+1
|
* Implement value conversions over type parameterDiego Barrios Romero2018-11-111-10/+11
|
* Trigger new measurement if reading a different channelDiego Barrios Romero2018-11-111-3/+9
|
* Reorganize modulesDiego Barrios Romero2018-11-111-0/+66