Added HangmanGame class, but does not work yet
Dependencies: SDFileSystem app epson mbed msp430 pl tests
Diff: wflib.h
- Revision:
- 0:fa7450a43b99
diff -r 000000000000 -r fa7450a43b99 wflib.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wflib.h Mon Dec 04 09:32:20 2017 +0000 @@ -0,0 +1,51 @@ +/* + Plastic Logic EPD project on MSP430 + + Copyright (C) 2014 Plastic Logic Limited + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ +/* + * wflib.h -- Waveform library management + * + * Authors: + * Guillaume Tucker <guillaume.tucker@plasticlogic.com> + * + */ + +#ifndef INCLUDE_PL_WFLIB_H +#define INCLUDE_PL_WFLIB_H 1 + +#include <stdint.h> +#include <stdlib.h> + +struct pl_wflib; +struct i2c_eeprom; +struct pl_dispinfo; + +/** Function type to write data to the output (i.e. the EPDC) */ +typedef int (*pl_wflib_wr_t)(void *ctx, const uint8_t *data, size_t n); + +/** Generic interface to load a waveform library */ +struct pl_wflib { + int (*xfer)(struct pl_wflib *wflib, pl_wflib_wr_t wr, void *ctx); + uint32_t size; + void *priv; +}; + +/** Initialise a wflib interface for a FatFS file */ +extern int pl_wflib_init_fatfs(struct pl_wflib *wflib, int *f, + const char *path); + +#endif /* INCLUDE_PL_WFLIB_H */