76 MAX313xx_SQW_16HZ = 4,
77 MAX313xx_SQW_32HZ = 5,
int max313xx_trickle_charge_enable(const max313xx_t *dev, bool diode, max313xx_trickle_res_t res)
Enable the trickle charger.
int max313xx_set_time(const max313xx_t *dev, const struct tm *time)
Set current time on device.
int max313xx_trickle_charge_disable(const max313xx_t *dev)
Disable the trickle charger.
int max313xx_temp_set_automode(const max313xx_t *dev, bool enable, max313xx_ttsint_t ttsint)
Configure automatic temperature conversion mode and interval.
int max313xx_set_sqw(const max313xx_t *dev, max313xx_sqw_freq_t freq)
Configure the square-wave (SQW) output frequency.
int max313xx_poweroff(const max313xx_t *dev)
Disable RTC oscillator (stop timekeeping).
int max313xx_set_alarm(const max313xx_t *dev, const struct tm *time)
Set alarm time registers.
int max313xx_poweron(const max313xx_t *dev)
Enable RTC oscillator (power on timekeeping).
int max313xx_get_temp(const max313xx_t *dev, int16_t *temp_centi)
Read temperature in centi-degrees Celsius (°C * 100)
int max313xx_get_alarm(const max313xx_t *dev, struct tm *time)
Get the currently configured alarm time.
int max313xx_get_time(const max313xx_t *dev, struct tm *time)
Read current time from device.
max313xx_sqw_freq_t
Square-wave output frequency selection.
max313xx_ttsint_t
Automatic temperature conversion interval.
max313xx_trickle_res_t
Trickle charger resistor selection.
int max313xx_set_alarm_int(const max313xx_t *dev, bool enable)
Enable or disable the alarm interrupt.
int max313xx_init(max313xx_t *dev, const max313xx_params_t *params)
Initialize MAX313xx device.
@ MAX313xx_TTSINT_16S
update temperature every 16s
@ MAX313xx_TTSINT_1S
update temperature every 1s
@ MAX313xx_TTSINT_32S
update temperature every 32s
@ MAX313xx_TTSINT_128S
update temperature every 128s
@ MAX313xx_TTSINT_8S
update temperature every 8s
@ MAX313xx_TTSINT_4S
update temperature every 4s
@ MAX313xx_TTSINT_64S
update temperature every 64s
@ MAX313xx_TTSINT_2S
update temperature every 2s
@ MAX313xx_TRICKLE_RES_6K
6 kOhm
@ MAX313xx_TRICKLE_RES_11K
11 kOhm
@ MAX313xx_TRICKLE_RES_3K
3 kOhm
uint_fast8_t i2c_t
Default i2c_t type definition.
Low-level I2C peripheral driver interface definition.
Common macros and compiler attributes/pragmas configuration.
Configuration parameters for MAX313xx initialization.
i2c_t i2c
I2C bus the device is connected to.
Device descriptor for the MAX313xx RTC.