Diego Barrios Romero
5414721d1d
Add docs html root url
2020-07-10 22:32:08 +02:00
Diego Barrios Romero
f146d1d26e
Use Rust edition 2018
2020-07-10 22:24:29 +02:00
Diego Barrios Romero
ff632625b2
Add example of new alarm setting method
2020-07-10 21:59:54 +02:00
Diego Barrios Romero
73302b1866
Add new methods to documentation
2020-07-10 21:53:59 +02:00
Diego Barrios Romero
b62488f592
Improve documentation
2020-07-10 21:35:03 +02:00
Marc Poulhiès
044051c2d9
Support setting alarms from a NaiveTime
...
It allows for more concise user code when setting alarm from such object.
2020-07-05 09:41:59 +02:00
Marc Poulhiès
092af13298
Better detect incorrect input for alarms, refactor some test macros
...
Alarm can be triggered on a subset of input, no need to reject ignored
fields (eg. don't care about day field when matching on time only). We still
need to set these to correct values as they are still used to set alarm
registers.
Test macro have been refactored to accept variable number of arguments.
2020-07-05 09:41:59 +02:00
Diego Barrios Romero
08d5192367
Extract method for H24 conversion
2020-05-02 12:45:05 +02:00
Diego Barrios Romero
b22cba6c63
Small simplification
2020-05-02 12:17:49 +02:00
Diego Barrios Romero
c3106c0f49
Rename methods due to Rust conventions
2020-05-02 11:48:45 +02:00
Diego Barrios Romero
3c8d378d6f
Implement Rtcc trait
2020-05-02 11:36:42 +02:00
Diego Barrios Romero
ed9502842d
Seal public types
2019-05-16 19:24:25 +02:00
Diego Barrios Romero
49f72014a7
Remove unnecessary statements
2019-05-16 19:24:13 +02:00
Diego Barrios Romero
af20f0321c
Code formatting
2019-05-16 19:18:07 +02:00
Diego Barrios Romero
c74f6a86f4
Add SPI mode constants
2019-05-16 19:12:39 +02:00
Diego Barrios Romero
0ef5cec642
Use embedded_hal::digital::v2::OutputPin traits
2019-05-16 18:50:11 +02:00
Diego Barrios Romero
f9a4918354
Remove leading 0 to avoid confusion
2019-04-17 17:38:23 +02:00
Diego Barrios Romero
1be01a3b18
Add links to driver-examples repo
2019-04-17 17:38:23 +02:00
Diego Barrios Romero
4db4677ea2
Do not deny warnings
2019-04-17 17:38:23 +02:00
Diego Barrios Romero
c7da098f80
Simplify code
2018-11-16 19:12:36 +01:00
Diego Barrios Romero
3459b41fed
Move alarm section up in documentation
2018-11-16 18:33:45 +01:00
Diego Barrios Romero
c10bf7de9d
Rename date to day as it is a day of the month.
2018-11-16 18:22:30 +01:00
Diego Barrios Romero
7d7008a583
Make type conversions explicit
2018-11-16 17:59:17 +01:00
Diego Barrios Romero
f971786c0d
Pass variablue per value
2018-11-16 17:50:06 +01:00
Diego Barrios Romero
4674d06546
Make types copyable
2018-11-16 17:47:48 +01:00
Diego Barrios Romero
a7c3f0c83a
Simplify range
2018-11-16 17:45:03 +01:00
Diego Barrios Romero
06e5aaddf3
Combine statement
2018-11-16 17:37:04 +01:00
Diego Barrios Romero
30cb5566d7
Reorganize driver capabilities
2018-11-16 17:25:24 +01:00
Diego Barrios Romero
0de8f5b8b7
Add examples of setting alarms
2018-11-03 08:11:53 +01:00
Diego Barrios Romero
b717f4e62b
Add support for setting alarm 2
2018-11-03 08:11:38 +01:00
Diego Barrios Romero
c3927e46c3
Add support for settin alarm1 to a weekday
2018-11-03 08:09:32 +01:00
Diego Barrios Romero
46d6656009
Add function to set the alarm1 to a date
2018-11-03 08:06:18 +01:00
Diego Barrios Romero
e6a1c4826f
Improve documentation
2018-11-03 07:59:59 +01:00
Diego Barrios Romero
7e9bfcff13
Add support for enabling/disabling alarm interrupts
2018-11-03 07:59:41 +01:00
Diego Barrios Romero
d883c9c499
Add support for checking if alarms have matched and clearing the flag
2018-11-03 07:58:24 +01:00
Diego Barrios Romero
1465d116ab
Extract function to convert Hours to a register value
2018-11-03 07:55:39 +01:00
Diego Barrios Romero
4675e902ad
Move conversion function up for reuse
2018-11-03 07:54:47 +01:00
Diego Barrios Romero
2304e08d1f
Change: clear_has_been_stopped_flag always clears without checking first
2018-11-03 07:53:01 +01:00
Diego Barrios Romero
34f74f7c60
Fix links
2018-10-31 11:17:31 +01:00
Diego Barrios Romero
10ac7e4b7c
DS3234: Add function to enable/disable temperature conversions on battery
2018-10-31 11:07:38 +01:00
Diego Barrios Romero
46aff07f81
Improve documentation of default state
2018-10-31 11:07:15 +01:00
Diego Barrios Romero
0f866f8145
Move constructors/destructors to the specific modules
2018-10-31 10:47:10 +01:00
Diego Barrios Romero
b70f4a6ffa
Add functions to set the temperature conversion rate
2018-10-31 10:37:42 +01:00
Diego Barrios Romero
4361e87645
Add functions to enable/disable the 32kHz output when battery-powered
2018-10-31 10:10:41 +01:00
Diego Barrios Romero
8bea870813
Extract function to write the status register
2018-10-31 10:01:47 +01:00
Diego Barrios Romero
73ca2703c9
Cache status value in the driver
2018-10-31 07:52:15 +01:00
Diego Barrios Romero
d18de45f95
Update documentation of driver capabilities
2018-10-31 07:11:12 +01:00
Diego Barrios Romero
1f3d060332
Add is_running to eneble/disable example
2018-10-31 07:08:59 +01:00
Diego Barrios Romero
672cd40b54
Add example of square-wave generation
2018-10-31 07:08:36 +01:00
Diego Barrios Romero
692e3ad834
Add function to set the square-wave output frequency
2018-10-31 06:55:16 +01:00