calendar_set_date

Configure the date for calendar HAL instance and hardware.

int32_t calendar_set_date(
    struct calendar_descriptor *const calendar,
    struct calendar_date *const p_calendar_date
)

Parameters

calendar

Type: struct calendar_descriptor *const

Pointer to the HAL Calendar instance.

p_calendar_date

Type: struct calendar_date *const

Pointer to the date configuration.

Returns

Type: int32_t

Operation status of time set.

0

Completed successfully.