Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
cfag12864b-example.c File Reference
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <stdio.h>

Go to the source code of this file.

Macros

#define CFAG12864B_WIDTH   (128)
 
#define CFAG12864B_HEIGHT   (64)
 
#define CFAG12864B_SIZE   (128 * 64 / 8)
 
#define CFAG12864B_BPB   (8)
 
#define CFAG12864B_ADDRESS(x, y)
 
#define CFAG12864B_BIT(n)   (((unsigned char) 1) << (n))
 
#define CFAG12864B_CHECK(x, y)   (1)
 
#define EXAMPLES   6
 

Functions

int main (int argc, char *argv[])
 

Variables

int cfag12864b_fd
 
unsigned charcfag12864b_mem
 
unsigned char cfag12864b_buffer [CFAG12864B_SIZE]
 

Macro Definition Documentation

#define CFAG12864B_ADDRESS (   x,
  y 
)
Value:

Definition at line 42 of file cfag12864b-example.c.

#define CFAG12864B_BIT (   n)    (((unsigned char) 1) << (n))

Definition at line 44 of file cfag12864b-example.c.

#define CFAG12864B_BPB   (8)

Definition at line 41 of file cfag12864b-example.c.

#define CFAG12864B_CHECK (   x,
  y 
)    (1)

Definition at line 51 of file cfag12864b-example.c.

#define CFAG12864B_HEIGHT   (64)

Definition at line 39 of file cfag12864b-example.c.

#define CFAG12864B_SIZE   (128 * 64 / 8)

Definition at line 40 of file cfag12864b-example.c.

#define CFAG12864B_WIDTH   (128)

Definition at line 38 of file cfag12864b-example.c.

#define EXAMPLES   6

Definition at line 198 of file cfag12864b-example.c.

Function Documentation

int main ( int  argc,
char argv[] 
)

Definition at line 256 of file cfag12864b-example.c.

Variable Documentation

unsigned char cfag12864b_buffer[CFAG12864B_SIZE]

Definition at line 56 of file cfag12864b-example.c.

int cfag12864b_fd

Definition at line 54 of file cfag12864b-example.c.

unsigned char* cfag12864b_mem

Definition at line 55 of file cfag12864b-example.c.