Project 1  4×4 Keypad
Neff Site
hc165.h
Go to the documentation of this file.
1 
16 #ifndef HC165_H_
17 #define HC165_H_
18 
19 #include "spi.h"
20 
21 /**** Pin Description *****/
22 
23 #define HC165_PORT SPI_PORT
24 #define HC165_MODULE SPI_MODULE
25 
26 /* Serial Data Input */
27 #define HC165_DS_bp SPI_MOSI_bp
28 #define HC165_DS_bm SPI_MOSI_bm
29 
30 /* Serial Output from the Last Stage */
31 #define HC165_Q7_bp SPI_MISO_bp
32 #define HC165_Q7_bm SPI_MISO_bm
33 
34 /* Clock Input */
35 #define HC165_CP_bp SPI_SCK_bp
36 #define HC165_CP_bm SPI_SCK_bm
37 
38 /* Asynchronous Parallel Load Input */
39 #define HC165_PL_bp SPI_SS_bp
40 #define HC165_PL_bm SPI_SS_bm
41 
42 #endif /* HC165_H_ */
Header file for the SPI interface.
Contact