Commit Graph

72 Commits (v0.5.0)

Author SHA1 Message Date
Diego Barrios Romero faf48c2870 Fix small clippy warnings and run it on tests as well on CI 2022-02-20 10:27:12 +01:00
Diego Barrios Romero 774b3cf527 Update to rtcc 0.3 2022-02-20 10:17:55 +01:00
James Munns b8ab37f57a Correct day bounds 2021-02-22 10:48:56 +01:00
Diego Barrios Romero 2799590575 Fix imports 2020-07-10 22:42:39 +02:00
Diego Barrios Romero f146d1d26e Use Rust edition 2018 2020-07-10 22:24:29 +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 4a455b7828 Add test setting max year date 2020-05-02 12:37:47 +02:00
Diego Barrios Romero 9fe57bbdf6 Code formatting 2020-05-02 12:17:55 +02:00
Diego Barrios Romero 1b13f482ae Fix build for Rust 1.31.0 2020-05-02 12:11:22 +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 d3329b2598 Update dependencies 2020-05-01 21:15:17 +02:00
Diego Barrios Romero af20f0321c Code formatting 2019-05-16 19:18:07 +02:00
Diego Barrios Romero 0ef5cec642 Use embedded_hal::digital::v2::OutputPin traits 2019-05-16 18:50:11 +02:00
Diego Barrios Romero 954ab66f3b Small simplification 2019-04-17 17:38:23 +02:00
Diego Barrios Romero e5ee15439f Remove redundant statement 2018-11-16 19:34:43 +01:00
Diego Barrios Romero 55bbf9098a Put construction tests together 2018-11-16 19:32:33 +01:00
Diego Barrios Romero dee3deb073 allow unused constant 2018-11-16 19:30:45 +01:00
Diego Barrios Romero 729a4c92e7 Import crate in module 2018-11-16 19:30:35 +01:00
Diego Barrios Romero eb87a741f6 Remove redundant statements 2018-11-16 19:11:13 +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 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 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 0dec4954e9 Fix alignment 2018-11-03 07:56:36 +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 77820cf6d0 Extract assert invalid input data macro 2018-11-03 07:51:24 +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 8734afa03f Separate exclusive tests 2018-10-31 10:41:54 +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 3e35295720 Extract constant 2018-10-31 10:14:38 +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 73ca2703c9 Cache status value in the driver 2018-10-31 07:52:15 +01:00
Diego Barrios Romero 692e3ad834 Add function to set the square-wave output frequency 2018-10-31 06:55:16 +01:00
Diego Barrios Romero 5168dbe68f Add function to enable/disable the square wave generation 2018-10-31 06:53:28 +01:00
Diego Barrios Romero 2aba6332e7 Add function to read whether the oscillator is running 2018-10-31 06:52:28 +01:00
Diego Barrios Romero 8c6b9ff777 Add function to select function of int/sqw output pin 2018-10-31 06:52:08 +01:00
Diego Barrios Romero 70657dd917 Add function to read the aging offset 2018-10-31 06:51:04 +01:00
Diego Barrios Romero ca36814a09 Cache the status of the control register in the driver to avoid reads 2018-10-31 06:50:26 +01:00
Diego Barrios Romero b01c258e60 Add function to read the temperature 2018-10-29 18:36:15 +01:00
Diego Barrios Romero 03b7012ec3 Add function to set the aging offset 2018-10-29 18:26:03 +01:00
Diego Barrios Romero c41526b7ec Add function to force a temperature conversion and time compensation 2018-10-29 18:25:16 +01:00
Diego Barrios Romero 08f83660d0 Add functions to enable/disable the 32kHz output 2018-10-29 18:24:20 +01:00
Diego Barrios Romero 7f3d1220d0 Add function to clear the has been stopped flag 2018-10-29 18:22:44 +01:00
Diego Barrios Romero 9d236eb8c6 Add function to check if the oscillator has been stopped. 2018-10-29 18:19:12 +01:00
Diego Barrios Romero 0ad4a4e585 Add support for reading busy status 2018-10-29 18:16:23 +01:00
Diego Barrios Romero 75c2988fa4 Fix checking transactions 2018-10-29 18:09:02 +01:00