MG32F10x Standard Peripherals Firmware Library
Functions
LED_Private_Functions

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...
 

Detailed Description

Function Documentation

◆ LED_Cmd()

void LED_Cmd ( FunctionalState  NewState)

Enables or disables the LED peripheral.

Parameters
NewStatenew state of the LED peripheral. This parameter can be: ENABLE or DISABLE.
Returns
None

◆ LED_DeInit()

void LED_DeInit ( void  )

Deinitializes the LED peripheral registers to their default reset values.

Returns
None

◆ LED_GetSegmentCode()

uint8_t LED_GetSegmentCode ( uint8_t  idx_seg)

Get the segment code.

Parameters
idx_segThe segment to set. This parameter must be between 0 to 7.
Returns
The segment code.

◆ LED_SetSegmentCode()

void LED_SetSegmentCode ( uint8_t  idx_seg,
uint8_t  seg_code 
)

Set the segment code.

Parameters
idx_segThe segment to set. This parameter must be between 0 to 7.
seg_codeThe segment code. This parameter must be between 0x00 to 0x7F.
Returns
None