MG32F10x Standard Peripherals Firmware Library
|
Functions | |
void | LED_DeInit (void) |
Deinitializes the LED peripheral registers to their default reset values. More... | |
void | LED_Cmd (FunctionalState NewState) |
Enables or disables the LED peripheral. More... | |
void | LED_SetSegmentCode (uint8_t idx_seg, uint8_t seg_code) |
Set the segment code. More... | |
uint8_t | LED_GetSegmentCode (uint8_t idx_seg) |
Get the segment code. More... | |
void LED_Cmd | ( | FunctionalState | NewState | ) |
Enables or disables the LED peripheral.
NewState | new state of the LED peripheral. This parameter can be: ENABLE or DISABLE. |
void LED_DeInit | ( | void | ) |
Deinitializes the LED peripheral registers to their default reset values.
uint8_t LED_GetSegmentCode | ( | uint8_t | idx_seg | ) |
Get the segment code.
idx_seg | The segment to set. This parameter must be between 0 to 7. |
void LED_SetSegmentCode | ( | uint8_t | idx_seg, |
uint8_t | seg_code | ||
) |
Set the segment code.
idx_seg | The segment to set. This parameter must be between 0 to 7. |
seg_code | The segment code. This parameter must be between 0x00 to 0x7F. |