#[repr(C)]pub struct LED_InitTypeDef {
pub ComDrive: u32,
pub Prescaler: u32,
pub ComNum: u32,
pub LightTime: u32,
pub DeadTime: u32,
}
Expand description
@brief LED Init Structure definition
Fields§
§ComDrive: u32
< Specifies the LED COM drive capability. This parameter can be a value of @ref LED_COMDrive
Prescaler: u32
< Specifies the prescaler value used to divide the LED clock. This parameter can be a number between Min_Data = 0x00(div1) and Max_Data = 0xFF(div256)
ComNum: u32
< Specifies the number of COM open. This parameter can be a number between Min_Data = 0(1COM) and Max_Data = 3(4COM)
LightTime: u32
< Specifies LED Lighting time. This parameter can be a number between Min_Data = 1 and Max_Data = 0xFF
DeadTime: u32
< Specifies LED Dead time. This parameter can be a number between Min_Data = 1 and Max_Data = 0xFF
Trait Implementations§
Source§impl Clone for LED_InitTypeDef
impl Clone for LED_InitTypeDef
Source§fn clone(&self) -> LED_InitTypeDef
fn clone(&self) -> LED_InitTypeDef
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 LED_InitTypeDef
impl Debug for LED_InitTypeDef
impl Copy for LED_InitTypeDef
Auto Trait Implementations§
impl Freeze for LED_InitTypeDef
impl RefUnwindSafe for LED_InitTypeDef
impl Send for LED_InitTypeDef
impl Sync for LED_InitTypeDef
impl Unpin for LED_InitTypeDef
impl UnwindSafe for LED_InitTypeDef
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