EPD Extension Kit for MSP430 LaunchPad

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
EPD_hardware_driver.h
Go to the documentation of this file.
1
34 #ifndef DISPLAY_HARDWARE_DRIVCE_H_INCLUDED_
35 #define DISPLAY_HARDWARE_DRIVCE_H_INCLUDED_
36
37 #include "Pervasive_Displays_small_EPD.h"
38
39 #define SMCLK_FREQ (16000000)
40 #define __External_Temperature_Sensor
41
43 #define SPISEL P1SEL
44 #define SPISEL2 P1SEL2
45 #define SPIIE IE2
46 #define SPICTL0 UCB0CTL0
47 #define SPICTL1 UCB0CTL1
48 #define SPIBR0 UCB0BR0
49 #define SPIBR1 UCB0BR1
50 #define SPIMCTL UCA0MCTL
51 #define SPIIFG IFG2
52 #define SPIRXBUF UCB0RXBUF
53 #define SPIRXIFG UCB0RXIFG
54 #define SPITXBUF UCB0TXBUF
55 #define SPITXIFG UCB0TXIFG
56 #define SPISTAT UCB0STAT
57 #define SPI_baudrate (SMCLK_FREQ/COG_SPI_baudrate)
59 void spi_init (void);
60 void spi_attach (void);
61 void spi_detach (void);
62 void SPI_send (unsigned char Register, unsigned char *Data, unsigned Length);
63 void SPI_send_byte (uint8_t Register, uint8_t Data);
64 uint8_t SPI_read(unsigned char RDATA);
65 void SPI_write (unsigned char Data);
66 uint8_t SPI_write_ex (unsigned char Data);
67 void sys_delay_ms(unsigned int ms);
68 void start_EPD_timer(void);
69 void stop_EPD_timer(void);
70 uint32_t get_current_time_tick(void);
71 void PWM_start_toggle(void);
72 void PWM_stop_toggle(void);
73 void PWM_run(uint16_t time);
74 void initialize_temperature(void);
75 int16_t get_temperature(void);
76 void EPD_display_hardware_init (void);
77
78 #if (defined COG_V110_G2) || (defined COG_V230)
79 uint8_t SPI_R(uint8_t Register, uint8_t Data);
80 #endif
81 #endif //DISPLAY_HARDWARE_DRIVCE_H_INCLUDED_