dsp0401.h File Reference

Device driver interface for the DSP0401 alphanumeric display. More...

Detailed Description

Device driver interface for the DSP0401 alphanumeric display.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file dsp0401.h.

#include <inttypes.h>
#include <stdint.h>
#include "periph/gpio.h"
#include "periph/pwm.h"
+ Include dependency graph for dsp0401.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dsp0401_params_t
 Device initialization parameters. More...
 
struct  dsp0401_t
 Device descriptor for the DSP0401. More...
 

Enumerations

enum  {
  DSP0401_OK = 0, DSP0401_ERR_CLK_GPIO, DSP0401_ERR_SDI_GPIO, DSP0401_ERR_LAT_GPIO,
  DSP0401_ERR_PWM
}
 Return codes. More...
 

Functions

int dsp0401_init (dsp0401_t *dev, const dsp0401_params_t *params)
 Initialize the given DSP0401. More...
 
void dsp0401_display_text (const dsp0401_t *dev, char *text)
 Display the given text on the DSP0401. More...
 
void dsp0401_clear_text (const dsp0401_t *dev)
 Clear the text displayed on the DSP0401. More...
 
void dsp0401_scroll_text (const dsp0401_t *dev, char *text, uint16_t delay)
 Scroll the given text on the DSP0401. More...