forked from DanielBretts/Spaceship-Game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssd.h
52 lines (39 loc) · 1.56 KB
/
ssd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* ************************************************************************** */
/** Descriptive File Name
@Company
Digilent
@File Name
ssd.h
@Description
This file groups the declarations of the functions that implement
the SSD library (defined in ssd.c).
Include the file in the project when this library is needed.
Use #include "ssd.h" in the source files where the functions are needed.
*/
/* ************************************************************************** */
#ifndef _SSD_H /* Guard against multiple inclusion */
#define _SSD_H
//#ifdef __cplusplus
//extern "C" {
//#endif
// *****************************************************************************
// *****************************************************************************
// Section: Interface Functions
// *****************************************************************************
// *****************************************************************************
void SSD_Init();
void SSD_WriteDigits(unsigned char d0, unsigned char d1, unsigned char d2, unsigned char d3, \
unsigned char dp1, unsigned char dp2, unsigned char dp3, unsigned char dp4);
void SSD_WriteDigitsGrouped(unsigned int val, unsigned char dp);
unsigned char SSD_GetDigitSegments(unsigned char d);
// private functions
void SSD_ConfigurePins();
void SSD_Timer1Setup();
/* Provide C++ Compatibility */
//#ifdef __cplusplus
//}
//#endif
#endif /* _SSD_H */
/* *****************************************************************************
End of File
*/