Herzog Library 00.00.01  rel_libdev.herzog.00.00.01.10606
Data Structures | Macros | Functions
led_sfrs.h File Reference

Go to the source code of this file.

Data Structures

struct  LED_CONFIG_t
 A structure to represent LED configuration. More...
 
struct  LED_SFRS_t
 A structure to represent Special Function Registers for LED. More...
 

Macros

#define E_LED_BITWIDTH   2
 
#define LED_SFRS   ((__IO LED_SFRS_t *) (0x50000062))
 The starting address of LED SFRS. More...
 

Functions

void f_LED_On (uint8_t pos)
 Turn on LED. More...
 
void f_LED_Off (uint8_t pos)
 Turn off LED. More...
 
void f_LED_SetLightLevel (uint8_t pos, uint8_t level)
 Set LED light level. More...
 

Detailed Description

This file is proprietary to Indie Semiconductor. All rights reserved. Reproduction or distribution, in whole or in part, is forbidden except by express written permission of Indie Semiconductor.

Macro Definition Documentation

#define E_LED_BITWIDTH   2
#define LED_SFRS   ((__IO LED_SFRS_t *) (0x50000062))

The starting address of LED SFRS.

Function Documentation

void f_LED_Off ( uint8_t  pos)

Turn off LED.

Parameters
posThe pin position on the LED port.
void f_LED_On ( uint8_t  pos)

Turn on LED.

Parameters
posThe pin position on the LED port.
void f_LED_SetLightLevel ( uint8_t  pos,
uint8_t  level 
)

Set LED light level.

Parameters
posThe pin position on the LED port.
levelThe light level.