MG32F10x Standard Peripherals Firmware Library

模块 | 函数
LED
MG32F10x_StdPeriph_Driver

LED driver modules 更多...

## 模块
| LED_Private_Functions

## 函数
void | LED_DeInit (void)
| Deinitializes the LED peripheral registers to their default reset values. 更多...
void | LED_Cmd (FunctionalState NewState)
| Enables or disables the LED peripheral. 更多...
void | LED_SetSegmentCode (uint8_t idx_seg, uint8_t seg_code)
| Set the segment code. 更多...
uint8_t | LED_GetSegmentCode (uint8_t idx_seg)
| Get the segment code. 更多...

## 详细描述

LED driver modules

## 函数说明

## ◆ LED_Cmd()

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.

返回
  None

## ◆ LED_DeInit()

void LED_DeInit | ( | void |  | ) |

Deinitializes the LED peripheral registers to their default reset values.

返回
  None

## ◆ LED_GetSegmentCode()

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.

返回
  The segment code.

## ◆ LED_SetSegmentCode()

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.

返回
  None