![]() |
LibDriver DS3231
|
ds3231 advance driver modules More...
Functions | |
| uint8_t | ds3231_set_pin (ds3231_handle_t *handle, ds3231_pin_t pin) |
| set the chip pin function | |
| uint8_t | ds3231_get_pin (ds3231_handle_t *handle, ds3231_pin_t *pin) |
| get the chip pin function | |
| uint8_t | ds3231_set_square_wave (ds3231_handle_t *handle, ds3231_bool_t enable) |
| enable or disable the square wave output | |
| uint8_t | ds3231_get_square_wave (ds3231_handle_t *handle, ds3231_bool_t *enable) |
| get the square wave output status | |
| uint8_t | ds3231_set_32khz_output (ds3231_handle_t *handle, ds3231_bool_t enable) |
| enable or disable the 32KHz output | |
| uint8_t | ds3231_get_32khz_output (ds3231_handle_t *handle, ds3231_bool_t *enable) |
| get the 32KHz output status | |
| uint8_t | ds3231_get_temperature (ds3231_handle_t *handle, int16_t *raw, float *s) |
| get the chip temperature | |
| uint8_t | ds3231_set_aging_offset (ds3231_handle_t *handle, int8_t offset) |
| set the chip aging offset | |
| uint8_t | ds3231_get_aging_offset (ds3231_handle_t *handle, int8_t *offset) |
| get the chip aging offset | |
| uint8_t | ds3231_aging_offset_convert_to_register (ds3231_handle_t *handle, float offset, int8_t *reg) |
| convert a aging offset value to a register raw data | |
| uint8_t | ds3231_aging_offset_convert_to_data (ds3231_handle_t *handle, int8_t reg, float *offset) |
| convert a register raw data to a converted aging offset data | |
ds3231 advance driver modules
| uint8_t ds3231_aging_offset_convert_to_data | ( | ds3231_handle_t * | handle, |
| int8_t | reg, | ||
| float * | offset ) |
convert a register raw data to a converted aging offset data
| [in] | *handle | pointer to a ds3231 handle structure |
| [in] | reg | register raw data |
| [out] | *offset | pointer to a converted aging offset buffer |
Definition at line 1404 of file driver_ds3231.c.
| uint8_t ds3231_aging_offset_convert_to_register | ( | ds3231_handle_t * | handle, |
| float | offset, | ||
| int8_t * | reg ) |
convert a aging offset value to a register raw data
| [in] | *handle | pointer to a ds3231 handle structure |
| [in] | offset | converted aging offset value |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 1377 of file driver_ds3231.c.
| uint8_t ds3231_get_32khz_output | ( | ds3231_handle_t * | handle, |
| ds3231_bool_t * | enable ) |
get the 32KHz output status
| [in] | *handle | pointer to a ds3231 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1688 of file driver_ds3231.c.
| uint8_t ds3231_get_aging_offset | ( | ds3231_handle_t * | handle, |
| int8_t * | offset ) |
get the chip aging offset
| [in] | *handle | pointer to a ds3231 handle structure |
| [out] | *offset | pointer to a time aging offset buffer |
Definition at line 1342 of file driver_ds3231.c.
| uint8_t ds3231_get_pin | ( | ds3231_handle_t * | handle, |
| ds3231_pin_t * | pin ) |
get the chip pin function
| [in] | *handle | pointer to a ds3231 handle structure |
| [out] | *pin | pointer to a pin's function buffer |
Definition at line 1067 of file driver_ds3231.c.
| uint8_t ds3231_get_square_wave | ( | ds3231_handle_t * | handle, |
| ds3231_bool_t * | enable ) |
get the square wave output status
| [in] | *handle | pointer to a ds3231 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1149 of file driver_ds3231.c.
| uint8_t ds3231_get_temperature | ( | ds3231_handle_t * | handle, |
| int16_t * | raw, | ||
| float * | s ) |
get the chip temperature
| [in] | *handle | pointer to a ds3231 handle structure |
| [out] | *raw | pointer to a raw temperature buffer |
| [out] | *s | pointer to a converted temperature buffer |
Definition at line 1187 of file driver_ds3231.c.
| uint8_t ds3231_set_32khz_output | ( | ds3231_handle_t * | handle, |
| ds3231_bool_t | enable ) |
enable or disable the 32KHz output
| [in] | *handle | pointer to a ds3231 handle structure |
| [in] | enable | bool value |
Definition at line 1643 of file driver_ds3231.c.
| uint8_t ds3231_set_aging_offset | ( | ds3231_handle_t * | handle, |
| int8_t | offset ) |
set the chip aging offset
| [in] | *handle | pointer to a ds3231 handle structure |
| [in] | offset | time aging offset |
Definition at line 1307 of file driver_ds3231.c.
| uint8_t ds3231_set_pin | ( | ds3231_handle_t * | handle, |
| ds3231_pin_t | pin ) |
set the chip pin function
| [in] | *handle | pointer to a ds3231 handle structure |
| [in] | pin | pin function |
Definition at line 1022 of file driver_ds3231.c.
| uint8_t ds3231_set_square_wave | ( | ds3231_handle_t * | handle, |
| ds3231_bool_t | enable ) |
enable or disable the square wave output
| [in] | *handle | pointer to a ds3231 handle structure |
| [in] | enable | bool value |
Definition at line 1104 of file driver_ds3231.c.