firmware/saa1064.h File Reference

I2C-connection to the SAA1064 LED-driver. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void set_led_digit (uint8_t digit, uint8_t val)
 This sets one digit on the LED module.
void set_led_brightness (uint8_t led_brightness)
 Configures the brightness of the LEDs.
void led_init (void)
 Initialize the LED module.


Detailed Description

I2C-connection to the SAA1064 LED-driver.

Author:
Ronald Schaten
Version:
Id
saa1064.h,v 1.2 2007/01/03 12:38:55 rschaten Exp
License: See documentation.

Definition in file saa1064.h.


Function Documentation

void led_init ( void   ) 

Initialize the LED module.

This basically enables the pullups on the I2C Bus pins.

Definition at line 30 of file saa1064.c.

Referenced by main().

void set_led_brightness ( uint8_t  led_brightness  ) 

Configures the brightness of the LEDs.

Or rather: the current the driver allows through them.

Parameters:
led_brightness The values 0 through 7 can be used, corresponding to 0 through 21 mA

Definition at line 126 of file saa1064.c.

References I2C_WRITE, and SAA_ADR.

Referenced by main().

void set_led_digit ( uint8_t  digit,
uint8_t  val 
)

This sets one digit on the LED module.

Parameters:
digit the number of the digit (0 - 3)
val a bitfield that contains the values to set

Definition at line 117 of file saa1064.c.

References I2C_WRITE, and SAA_ADR.

Referenced by main(), and setLeds().


Generated on Wed Jan 3 22:22:49 2007 for Binary DCF-77 Clock by  doxygen 1.5.1