spi_7seg.h File Reference

ntrx More...

Go to the source code of this file.

Defines

#define CLR_7SEG   ESC_CHAR "c"
#define BLS_7SEG   ESC_CHAR "b"
#define BLF_7SEG   ESC_CHAR "f"
#define NOR_7SEG   ESC_CHAR "n"
#define HOME_7SEG   ESC_CHAR "h"
#define TEST_7SEG   ESC_CHAR "t"
#define INT_7SEG   ESC_CHAR "i"
#define DOT_7SEG_CLR   0
#define DOT_7SEG_SET   1
#define DOT_7SEG_FLIP   2

Functions

void Spi7segDot (NUTDEVICE *dev, uint8_t pos, uint8_t act)
 File Handle for 7-Sefgment Display.
int Spi7segCommand (NUTDEVICE *dev, uint8_t addr, CONST void *txbuf, void *rxbuf, int xlen)

Variables

NUTSPINODE nodeSpi7SEG
 7seg SPI node implementation structure.
NUTDEVICE devSpi7SEG
 7seg device implementation structure.

Detailed Description

ntrx

 * $Id: spi_ntrx.h$
 * 

Definition in file spi_7seg.h.


Define Documentation

#define CLR_7SEG   ESC_CHAR "c"

Definition at line 58 of file spi_7seg.h.

#define BLS_7SEG   ESC_CHAR "b"

Definition at line 59 of file spi_7seg.h.

#define BLF_7SEG   ESC_CHAR "f"

Definition at line 60 of file spi_7seg.h.

#define NOR_7SEG   ESC_CHAR "n"

Definition at line 61 of file spi_7seg.h.

#define HOME_7SEG   ESC_CHAR "h"

Definition at line 62 of file spi_7seg.h.

#define TEST_7SEG   ESC_CHAR "t"

Definition at line 63 of file spi_7seg.h.

#define INT_7SEG   ESC_CHAR "i"

Definition at line 64 of file spi_7seg.h.

#define DOT_7SEG_CLR   0

Definition at line 67 of file spi_7seg.h.

Referenced by Spi7segDot().

#define DOT_7SEG_SET   1

Definition at line 68 of file spi_7seg.h.

Referenced by Spi7segDot().

#define DOT_7SEG_FLIP   2

Definition at line 69 of file spi_7seg.h.

Referenced by Spi7segDot().


Function Documentation

void Spi7segDot ( NUTDEVICE *  dev,
uint8_t  pos,
uint8_t  act 
)

File Handle for 7-Sefgment Display.

Parameters:
pos Selects the digit.
act Selects the action for the digits decimal dot.

Definition at line 478 of file spi_7seg.c.

References DOT_7SEG_CLR, DOT_7SEG_FLIP, DOT_7SEG_SET, NUTASSERT, and Spi7SegPush().

int Spi7segCommand ( NUTDEVICE *  dev,
uint8_t  addr,
CONST void *  txbuf,
void *  rxbuf,
int  xlen 
)

Variable Documentation

NUTSPINODE nodeSpi7SEG

7seg SPI node implementation structure.

Definition at line 607 of file spi_7seg.c.

NUTDEVICE devSpi7SEG

7seg device implementation structure.

Examples:
7segtst/7segtst.c.

Definition at line 619 of file spi_7seg.c.

Referenced by main().


© 2000-2010 by contributors - visit http://www.ethernut.de/