module for Real Time Clock
More...
module for Real Time Clock
◆ get_time_value()
Read prepared value from RTC module.
- Returns
◆ get_tsensor_id()
Return sensor ID.
This ID is generated by SW.
- Parameters
-
- Returns
- pointer to data structure with sensor ID.
◆ time_count()
uint8_t time_count |
( |
void |
| ) |
|
Return number of sensors in this peripheral.
- Returns
- 1
◆ time_getType()
Return type specification for RTC module.
- Returns
- RTC sensor module type
◆ time_init()
void time_init |
( |
void * |
rtc_handle, |
|
|
uint16_t |
time_format |
|
) |
| |
Initialization of RTC module.
Supported formats: SENSOR_TYPE_TIME_BINARY_4B, SENSOR_TYPE_TIME_BCD_6B
- Parameters
-
rtc_handle | pointer to initialized RTC_HandleTypeDef structure or NULL in simulation mode. |
time_format | required output format (SENSOR_TYPE_TIME_BINARY, SENSOR_TYPE_TIME_BCD) |
◆ timeSensor
RecordDescriptor_t time_getType()
Return type specification for RTC module.
Definition: module_time.c:127
void time_init(void *, uint16_t)
Initialization of RTC module.
Definition: module_time.c:77
SensorValue_t * get_time_value()
Read prepared value from RTC module.
Definition: module_time.c:135