Diego Barrios Romero
2799590575
Fix imports
3 years ago
Diego Barrios Romero
f146d1d26e
Use Rust edition 2018
3 years ago
Marc Poulhiès
044051c2d9
Support setting alarms from a NaiveTime
...
It allows for more concise user code when setting alarm from such object.
3 years ago
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.
3 years ago
Diego Barrios Romero
4a455b7828
Add test setting max year date
3 years ago
Diego Barrios Romero
9fe57bbdf6
Code formatting
3 years ago
Diego Barrios Romero
1b13f482ae
Fix build for Rust 1.31.0
3 years ago
Diego Barrios Romero
c3106c0f49
Rename methods due to Rust conventions
3 years ago
Diego Barrios Romero
3c8d378d6f
Implement Rtcc trait
3 years ago
Diego Barrios Romero
d3329b2598
Update dependencies
3 years ago
Diego Barrios Romero
af20f0321c
Code formatting
4 years ago
Diego Barrios Romero
0ef5cec642
Use embedded_hal::digital::v2::OutputPin traits
4 years ago
Diego Barrios Romero
954ab66f3b
Small simplification
5 years ago
Diego Barrios Romero
e5ee15439f
Remove redundant statement
5 years ago
Diego Barrios Romero
55bbf9098a
Put construction tests together
5 years ago
Diego Barrios Romero
dee3deb073
allow unused constant
5 years ago
Diego Barrios Romero
729a4c92e7
Import crate in module
5 years ago
Diego Barrios Romero
eb87a741f6
Remove redundant statements
5 years ago
Diego Barrios Romero
c10bf7de9d
Rename date to day as it is a day of the month.
5 years ago
Diego Barrios Romero
b717f4e62b
Add support for setting alarm 2
5 years ago
Diego Barrios Romero
c3927e46c3
Add support for settin alarm1 to a weekday
5 years ago
Diego Barrios Romero
46d6656009
Add function to set the alarm1 to a date
5 years ago
Diego Barrios Romero
7e9bfcff13
Add support for enabling/disabling alarm interrupts
5 years ago
Diego Barrios Romero
d883c9c499
Add support for checking if alarms have matched and clearing the flag
5 years ago
Diego Barrios Romero
0dec4954e9
Fix alignment
5 years ago
Diego Barrios Romero
2304e08d1f
Change: clear_has_been_stopped_flag always clears without checking first
5 years ago
Diego Barrios Romero
77820cf6d0
Extract assert invalid input data macro
5 years ago
Diego Barrios Romero
10ac7e4b7c
DS3234: Add function to enable/disable temperature conversions on battery
5 years ago
Diego Barrios Romero
8734afa03f
Separate exclusive tests
5 years ago
Diego Barrios Romero
b70f4a6ffa
Add functions to set the temperature conversion rate
5 years ago
Diego Barrios Romero
3e35295720
Extract constant
5 years ago
Diego Barrios Romero
4361e87645
Add functions to enable/disable the 32kHz output when battery-powered
5 years ago
Diego Barrios Romero
73ca2703c9
Cache status value in the driver
5 years ago
Diego Barrios Romero
692e3ad834
Add function to set the square-wave output frequency
5 years ago
Diego Barrios Romero
5168dbe68f
Add function to enable/disable the square wave generation
5 years ago
Diego Barrios Romero
2aba6332e7
Add function to read whether the oscillator is running
5 years ago
Diego Barrios Romero
8c6b9ff777
Add function to select function of int/sqw output pin
5 years ago
Diego Barrios Romero
70657dd917
Add function to read the aging offset
5 years ago
Diego Barrios Romero
ca36814a09
Cache the status of the control register in the driver to avoid reads
5 years ago
Diego Barrios Romero
b01c258e60
Add function to read the temperature
5 years ago
Diego Barrios Romero
03b7012ec3
Add function to set the aging offset
5 years ago
Diego Barrios Romero
c41526b7ec
Add function to force a temperature conversion and time compensation
5 years ago
Diego Barrios Romero
08f83660d0
Add functions to enable/disable the 32kHz output
5 years ago
Diego Barrios Romero
7f3d1220d0
Add function to clear the has been stopped flag
5 years ago
Diego Barrios Romero
9d236eb8c6
Add function to check if the oscillator has been stopped.
5 years ago
Diego Barrios Romero
0ad4a4e585
Add support for reading busy status
5 years ago
Diego Barrios Romero
75c2988fa4
Fix checking transactions
5 years ago
Diego Barrios Romero
6e477fa5bf
Add function to enable/disable the oscillator
5 years ago
Diego Barrios Romero
d1a1ddbda3
Rename test module
5 years ago
Diego Barrios Romero
60087909a7
Add tests for datetime checks
5 years ago