ea_dsp7s04.h File Reference

Include dependency graph for ea_dsp7s04.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ea_dsp7s04_enable_display(on)   cat4016_enable_display(on)

Functions

void ea_dsp7s04_clear_dot (uns8 pos)
void ea_dsp7s04_init (void)
void ea_dsp7s04_print_str (char *str)
void ea_dsp7s04_put_raw (uns8 pos, uns8 data)
void ea_dsp7s04_set_display (char s, uns8 position)
void ea_dsp7s04_set_dot (uns8 pos)
void ea_dsp7s04_setup_io (void)
void ea_dsp7s04_update_display (void)

Define Documentation

#define ea_dsp7s04_enable_display ( on   )     cat4016_enable_display(on)

Function Documentation

void ea_dsp7s04_clear_dot ( uns8  pos  ) 

00126                                          {
00127     
00128     dots = dots & ~(1 << position);
00129 }   

void ea_dsp7s04_init ( void   ) 

00047                            {
00048     
00049     display[0] = 0;
00050     display[1] = 0;
00051     display[2] = 0;
00052     display[3] = 0;
00053     dots = 0;
00054     
00055 }   

void ea_dsp7s04_print_str ( char *  str  ) 

00132                                      {
00133 
00134 uns8 count;
00135 
00136     for( count = 0; count < 4; count++ ) {
00137         display[count] = ea_dsp7s04_translate(str[count]);
00138     }
00139     ea_dsp7s04_update_display();
00140 
00141 }

Here is the call graph for this function:

void ea_dsp7s04_put_raw ( uns8  pos,
uns8  data 
)
void ea_dsp7s04_set_display ( char  s,
uns8  position 
)

00113                                                    {
00114     
00115     if (position < 4) {
00116         display[position] = ea_dsp7s04_translate(s);
00117     }
00118 
00119 }   

Here is the call graph for this function:

void ea_dsp7s04_set_dot ( uns8  pos  ) 

00121                                        {
00122     
00123     dots = dots | (1 << position);
00124 }   

void ea_dsp7s04_setup_io ( void   ) 

00041                                {
00042 
00043     cat4016_setup_io();
00044     
00045 }

void ea_dsp7s04_update_display ( void   ) 

00105                                      {
00106 
00107     cat4016_write_data(display[3] | (dots >> 3) , display[2] | ((dots >> 2) & 0x01));
00108     cat4016_write_data(display[1] | ((dots >> 1) & 0x01), display[0] | (dots & 0x01));
00109     cat4016_latch_data();
00110 }

Here is the caller graph for this function:


Generated on Fri Aug 19 09:05:26 2011 for Pic Pack Library by  doxygen 1.6.1