EA DOGM128 Driver
0.1
Driver code for the EA DOGM128
|
Header file containing common macros, typedefs, and function prototypes which belong in no particular category.
More...
#include "DOGM128_user_config.h"
Go to the source code of this file.
Macros | |
#define | DOG_WIDTH 128 |
#define | DOG_HEIGHT 64 |
#define | DOG_PAGE_HEIGHT 8 |
#define | SETBIT(port, bit) ((port) |= (1 << (bit))) |
#define | CLEARBIT(port, bit) ((port) &= ~(1 << (bit))) |
#define | DOG_INIT_SPI() |
#define | DOG_SLAVE_SELECT() CLEARBIT(DOG_SPI_PORT, DOG_SS_BAR_PIN); |
#define | DOG_SLAVE_DESELECT() SETBIT(DOG_SPI_PORT, DOG_SS_BAR_PIN); |
#define | DOG_ASSERT_RESET() CLEARBIT(DOG_RESET_PORT, DOG_RESET_PIN); |
#define | DOG_UNASSERT_RESET() SETBIT(DOG_RESET_PORT, DOG_RESET_PIN); |
#define | DOG_SEND_DATA() SETBIT(DOG_DATA_OR_COMMAND_PORT, DOG_DATA_OR_COMMAND_PIN); |
#define | DOG_SEND_COMMAND() CLEARBIT(DOG_DATA_OR_COMMAND_PORT, DOG_DATA_OR_COMMAND_PIN); |
Typedefs | |
typedef unsigned char | uint8_t |
typedef signed char | int8_t |
typedef unsigned int | uint16_t |
typedef signed int | int16_t |
Enumerations | |
enum | dog_power_state_t { DOG_OFF = 0, DOG_ON } |
enum | dog_display_mode_t { DOG_NORMAL_DISPLAY = 0, DOG_INVERTED_DISPLAY } |
Functions | |
void | dog_init (dog_display_mode_t display_mode, uint8_t contrast) |
void | dog_clear_display (void) |
void | dog_clear_buffer (void) |
void | dog_print_buffer (void) |
void | dog_set_contrast (uint8_t contrast) |
void | dog_invert_pixels (dog_display_mode_t display_mode) |
void | dog_power (dog_power_state_t state) |
Header file containing common macros, typedefs, and function prototypes which belong in no particular category.