Satellite Observers Workbench. NOT yet complete, just published for forum posters to \"cherry pick\" pieces of code as requiered as an example.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MAX7456.h Source File

MAX7456.h

00001 /****************************************************************************
00002  *    Copyright 2010 Andy Kirkham, Stellar Technologies Ltd
00003  *    
00004  *    This file is part of the Satellite Observers Workbench (SOWB).
00005  *
00006  *    SOWB is free software: you can redistribute it and/or modify
00007  *    it under the terms of the GNU General Public License as published by
00008  *    the Free Software Foundation, either version 3 of the License, or
00009  *    (at your option) any later version.
00010  *
00011  *    SOWB is distributed in the hope that it will be useful,
00012  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *    GNU General Public License for more details.
00015  *
00016  *    You should have received a copy of the GNU General Public License
00017  *    along with SOWB.  If not, see <http://www.gnu.org/licenses/>.
00018  *
00019  *    $Id: main.cpp 5 2010-07-12 20:51:11Z ajk $
00020  *    
00021  ***************************************************************************/
00022 
00023 #ifndef MAX7456_H
00024 #define MAX7456_H
00025 
00026 #define MAX7456_DISPLAY_LINES 15
00027 #define MAX7456_DISPLAY_LINE_LEN 32
00028 
00029 /* Function prototypes. */
00030 void MAX7456_init(void);
00031 void MAX7456_write_byte(unsigned char address, unsigned char byte);
00032 int MAX7456_read_byte(unsigned char address);
00033 void MAX7456_cursor(int x, int y);
00034 unsigned char MAX7456_map_char(unsigned char c);
00035 void MAX7456_convert_string(unsigned char *s);
00036 void MAX7456_string(unsigned char *s);
00037 void MAX7456_stringl(int x, int y, unsigned char *s, int len);
00038 void MAX7456_read_char_map(unsigned char address, unsigned char *data54);
00039 void MAX7456_write_char_map(unsigned char address, const unsigned char *data54);
00040 
00041 #endif