Nut/OS  4.10.3
API Reference
spi_7seg.h File Reference

ntrx More...

#include <sys/device.h>
#include <dev/spibus.h>
Include dependency graph for spi_7seg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ESC_CHAR   "\x1B"
#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 ESC_CHAR   "\x1B"

Definition at line 54 of file spi_7seg.h.

#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:
posSelects the digit.
actSelects the action for the digits decimal dot.

Definition at line 478 of file spi_7seg.c.

References _NUTDEVICE::dev_dcb, DCB_7SEG::digit, DOT_7SEG_CLR, DOT_7SEG_FLIP, DOT_7SEG_SET, NUTASSERT, SEG7_DIGITS, and Spi7SegPush().

Here is the call graph for this function:

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

Variable Documentation

7seg SPI node implementation structure.

Definition at line 604 of file spi_7seg.c.

7seg device implementation structure.

Definition at line 616 of file spi_7seg.c.