Herzog Library 00.00.01  rel_libdev.herzog.00.00.01.10606
Functions | Variables
led_device.c File Reference
#include <stdint.h>
#include <string.h>
#include "hdf.h"
#include "errno.h"
#include "led_device.h"

Functions

int32_t LED_devOn (LED_Device_t *dev, uint8_t pos)
 Turn On a LED. More...
 
int32_t LED_devOff (LED_Device_t *dev, uint8_t pos)
 Turn off LED. More...
 
int32_t LED_devSetLightLevel (LED_Device_t *dev, uint8_t pos, uint8_t level)
 Set LED light level. More...
 
LED_Device_tLED_devRequest (const char *name)
 Request a LED Device. More...
 

Variables

static const LED_Device_tLED_DeviceTable []
 The table of LED device instances supported by the platform. 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.

Function Documentation

int32_t LED_devOff ( LED_Device_t dev,
uint8_t  pos 
)

Turn off LED.

Parameters
devThe pointer to LED_Device
posThe pin position on LED port
Returns
0 fo success or error code upon a failure
int32_t LED_devOn ( LED_Device_t dev,
uint8_t  pos 
)

Turn On a LED.

Parameters
devThe pointer to LED_Device
posThe pin position on LED port
Returns
0 for success or error code upon a failure
LED_Device_t* LED_devRequest ( const char *  name)

Request a LED Device.

Parameters
nameThe name string of LED device.
Returns
The pointer to the LED device instance.
int32_t LED_devSetLightLevel ( LED_Device_t dev,
uint8_t  pos,
uint8_t  level 
)

Set LED light level.

Parameters
devThe pointer to LED_Device
posThe pin position on LED port
levelThe light level
Returns
0 fo success or error code upon a failure

Variable Documentation

const LED_Device_t* LED_DeviceTable[]
static
Initial value:
= {
NULL,
}

The table of LED device instances supported by the platform.