source: rtems/c/src/libchip/display/disp_hcms29xx.h @ 3495c57

4.104.115
Last change on this file since 3495c57 was 3495c57, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/30/09 at 03:49:08

Whitespace removal.

  • Property mode set to 100644
File size: 2.8 KB
Line 
1/*===============================================================*\
2| Project: display driver for HCMS29xx                            |
3+-----------------------------------------------------------------+
4| File: disp_hcms29xx.h                                           |
5+-----------------------------------------------------------------+
6|                    Copyright (c) 2008                           |
7|                    Embedded Brains GmbH                         |
8|                    Obere Lagerstr. 30                           |
9|                    D-82178 Puchheim                             |
10|                    Germany                                      |
11|                    rtems@embedded-brains.de                     |
12+-----------------------------------------------------------------+
13| The license and distribution terms for this file may be         |
14| found in the file LICENSE in this distribution or at            |
15|                                                                 |
16| http://www.rtems.com/license/LICENSE.                           |
17|                                                                 |
18+-----------------------------------------------------------------+
19| this file declares the SPI based driver for a HCMS29xx 4 digit  |
20| alphanumeric LED display                                        |
21+-----------------------------------------------------------------+
22|  $Id$
23\*===============================================================*/
24#ifndef _DISP_HCMS29XX_H
25#define _DISP_HCMS29XX_H
26#include <rtems.h>
27#include <time.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32#define DISP_HCMS29XX_TEXT_CNT (128)
33
34  typedef struct {
35    rtems_device_major_number minor;   /* minor device number            */
36    /*
37     * in the disp_buffer, the string to be displayed is placed
38     */
39    char disp_buffer[DISP_HCMS29XX_TEXT_CNT];
40    int  disp_buf_cnt; /* number of valid chars in disp_buffer */
41    /*
42     * in the trns buffer the string is transfered to display task
43     */
44    char trns_buffer[DISP_HCMS29XX_TEXT_CNT];
45    /*
46     * in the dev_buffer, characters will be accumulated before display...
47     */
48    char dev_buffer[DISP_HCMS29XX_TEXT_CNT];
49    int  dev_buf_cnt; /* number of valid chars in dev_buffer */
50
51    rtems_id trns_sema_id;  /* ID of disp trns buffer sema   */
52    rtems_id task_id;       /* ID of disp task               */
53    bool rotate;            /* FLAG: display is upside down       */
54  } spi_disp_hcms29xx_param_t;
55
56  typedef struct {
57    rtems_libi2c_drv_t        libi2c_drv_entry;
58    spi_disp_hcms29xx_param_t disp_param;
59  } disp_hcms29xx_drv_t;
60  /*
61   * pass this descriptor pointer to rtems_libi2c_register_drv
62   */
63  extern rtems_libi2c_drv_t *disp_hcms29xx__driver_descriptor;
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif /* _DISP_HCMS29XX_H */
Note: See TracBrowser for help on using the repository browser.