Newer
Older
avrtft / types.h
/* 
 * File:   types.h
 * Author: torsten.roemer@luniks.net
 *
 * Created on 17. September 2023, 20:33
 */

#ifndef TYPES_H
#define TYPES_H

/* Width and height of bitmaps and glyphs */
typedef uint8_t     width_t;
typedef uint8_t     height_t;

/* Width * height * bytes per pixel */
typedef uint16_t    bytes_t;

/* Number of rows and columns of the display */
typedef uint8_t     row_t;
typedef uint8_t     col_t;

/* Char code (like UTF-8 code point) */
typedef uint8_t     code_t;

/* Number of glyphs of a font */
typedef uint8_t     length_t;

#endif /* TYPES_H */