32 #ifndef BSP430_UTILITY_SHARPLCD_H
33 #define BSP430_UTILITY_SHARPLCD_H
58 #ifndef configBSP430_PLATFORM_SHARPLCD
59 #define configBSP430_PLATFORM_SHARPLCD 0
77 #if defined(BSP430_DOXYGEN)
78 #define BSP430_PLATFORM_SHARPLCD include <bsp430/platform.h>
90 #ifndef configBSP430_PLATFORM_BOOSTERPACK_SHARP96
91 #define configBSP430_PLATFORM_BOOSTERPACK_SHARP96 0
104 #if defined(BSP430_DOXYGEN)
105 #define BSP430_PLATFORM_BOOSTERPACK_SHARP96 include <bsp430/platform.h>
108 #if defined(BSP430_DOXYGEN)
111 #define BSP430_PLATFORM_SHARPLCD_ROWS include <bsp430/platform.h>
113 #if defined(BSP430_DOXYGEN)
116 #define BSP430_PLATFORM_SHARPLCD_COLUMNS include <bsp430/platform.h>
119 #define BSP430_PLATFORM_SHARPLCD_BYTES_PER_LINE ((7 + BSP430_PLATFORM_SHARPLCD_COLUMNS) / 8)
121 #if defined(BSP430_DOXYGEN) || !defined(BSP430_SHARPLCD_REFRESH_INTERVAL_MS)
128 #define BSP430_SHARPLCD_REFRESH_INTERVAL_MS 1000
135 #if defined(BSP430_DOXYGEN) || !defined(BSP430_PLATFORM_SHARPLCD_SPI_BUS_HZ)
136 #define BSP430_PLATFORM_SHARPLCD_SPI_BUS_HZ 1000000UL
140 #define BSP430_SHARPLCD_CTL0_INITIALIZER BSP430_SERIAL_ADJUST_CTL0_INITIALIZER(UCCKPH | UCMSB | UCMST)
142 #if defined(BSP430_DOXYGEN)
146 #define BSP430_PLATFORM_SHARPLCD_CS_PORT_PERIPH_HANDLE include <bsp430/platform.h>
152 #define BSP430_PLATFORM_SHARPLCD_CS_PORT_BIT include <bsp430/platform.h>
156 #define BSP430_PLATFORM_SHARPLCD_LCD_EN_PORT_PERIPH_HANDLE include <bsp430/platform.h>
160 #define BSP430_PLATFORM_SHARPLCD_LCD_EN_PORT_BIT include <bsp430/platform.h>
166 #define BSP430_PLATFORM_SHARPLCD_PWR_EN_PORT_PERIPH_HANDLE include <bsp430/platform.h>
170 #define BSP430_PLATFORM_SHARPLCD_PWR_EN_PORT_BIT include <bsp430/platform.h>
174 #define BSP430_PLATFORM_SHARPLCD_SPI_PERIPH_HANDLE include <bsp430/platform.h>
200 #define BSP430_SHARPLCD_MODE_DYNAMIC 0x80
210 #define BSP430_SHARPLCD_VCOM 0x40
215 #define BSP430_SHARPLCD_CLEAR_ALL 0x20
219 #define BSP430_SHARPLCD_CS_ASSERT(_dev) do { \
220 (_dev)->cs->out |= (_dev)->cs_bit; \
224 #define BSP430_SHARPLCD_CS_DEASSERT(_dev) do { \
225 (_dev)->cs->out &= ~(_dev)->cs_bit; \
292 const uint8_t * line_data);
volatile sBSP430hplPORT * pwr_en
Definition: sharplcd.h:182
int iBSP430sharplcdClearDisplay_rh(hBSP430sharplcd dev)
uint8_t lcd_en_bit
Definition: sharplcd.h:188
volatile sBSP430hplPORT * cs
Definition: sharplcd.h:180
hBSP430halSERIAL spi
Definition: sharplcd.h:183
Common header included by all BSP430 leaf headers.
unsigned int line_size
Definition: sharplcd.h:186
Definition: serial_.h:193
unsigned int columns
Definition: sharplcd.h:185
unsigned int lines
Definition: sharplcd.h:184
Declarations for abstracted serial interface.
Definition: sharplcd.h:179
volatile sBSP430hplPORT * lcd_en
Definition: sharplcd.h:181
int iBSP430sharplcdRefreshDisplay_rh(hBSP430sharplcd dev)
uint8_t pwr_en_bit
Definition: sharplcd.h:189
Hardware presentation/abstraction for Digital I/O Port (PORT#/PORT#_R)
uint8_t vcom_state_
Definition: sharplcd.h:190
int iBSP430sharplcdSetEnabled_ni(hBSP430sharplcd dev, int enablep)
struct sBSP430sharplcd sBSP430sharplcd
hBSP430sharplcd hBSP430sharplcdInitializePlatformDevice(hBSP430sharplcd dev)
sBSP430sharplcd * hBSP430sharplcd
Definition: sharplcd.h:194
uint8_t cs_bit
Definition: sharplcd.h:187
int iBSP430sharplcdUpdateDisplayLines_rh(hBSP430sharplcd dev, int start_line, int num_lines, const uint8_t *line_data)