#[repr(C)]pub struct RTC_DateTypeDef {
pub WeekDay: u8,
pub Month: u8,
pub Date: u8,
pub Year: u8,
}
Expand description
@brief RTC Date structure definition
Fields§
§WeekDay: u8
< Specifies the RTC Date WeekDay (not necessary for HAL_RTC_SetDate). This parameter can be a value of @ref RTC_WeekDay_Definitions
Month: u8
< Specifies the RTC Date Month (in BCD format). This parameter can be a value of @ref RTC_Month_Date_Definitions
Date: u8
< Specifies the RTC Date. This parameter must be a number between Min_Data = 1 and Max_Data = 31
Year: u8
< Specifies the RTC Date Year. This parameter must be a number between Min_Data = 0 and Max_Data = 99
Trait Implementations§
Source§impl Clone for RTC_DateTypeDef
impl Clone for RTC_DateTypeDef
Source§fn clone(&self) -> RTC_DateTypeDef
fn clone(&self) -> RTC_DateTypeDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RTC_DateTypeDef
impl Debug for RTC_DateTypeDef
impl Copy for RTC_DateTypeDef
Auto Trait Implementations§
impl Freeze for RTC_DateTypeDef
impl RefUnwindSafe for RTC_DateTypeDef
impl Send for RTC_DateTypeDef
impl Sync for RTC_DateTypeDef
impl Unpin for RTC_DateTypeDef
impl UnwindSafe for RTC_DateTypeDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more