23423952a83cf88e8c86cac042c4ce72c04b8e15
Stefan Schuermans iplemented 1st part of BBM...

Stefan Schuermans authored 12 years ago

1) /* flaneth - flash and ethernet
Stefan Schuermans change email address in hea...

Stefan Schuermans authored 12 years ago

2)    Copyright (C) 2007-2012 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans iplemented 1st part of BBM...

Stefan Schuermans authored 12 years ago

3)    Copyleft: GNU public license V2 - http://www.gnu.org/copyleft/gpl.html
4)    a BlinkenArea project - http://www.blinkenarea.org/ */
5) 
6) #ifndef INC_app_bbm
7) #define INC_app_bbm
8) 
9) #include "dosfs.h"
10) 
11) /// internal state of BBM play application
12) typedef struct app_bbm_state {
13)   // initialize before calling init
14)   uint8_t (*sectorBuf)[SECTOR_SIZE]; ///< scratch buffer to store a sector
15)   VOLINFO *vi;                       ///< volume information structure
16)   uint8_t no;                        ///< number of BBM play application
17)   // internal stuff
Stefan Schuermans resend MCUF frame after 1s...

Stefan Schuermans authored 12 years ago

18)   char           isInit;      ///< if successfully initialized
19)   unsigned long  nextActMs;   ///< when to do next action
20)   char           haveAddr;    ///< if destination address for MCUF is known
21)   unsigned char  addr[4];     ///< destination address for MCUF packets
22)   unsigned short port;        ///< destination port for MCUF packets
Stefan Schuermans BBM play: add serial MCUF o...

Stefan Schuermans authored 12 years ago

23)   char           ser115k2;    ///< if serial output 115200 8N1 is requested
Stefan Schuermans resend MCUF frame after 1s...

Stefan Schuermans authored 12 years ago

24)   unsigned int   idxFile;     ///< index of file to open next
25)   char           haveFile;    ///< if a file is open
26)   FILEINFO       fi;          ///< information about open file
27)   uint16_t       height;      ///< height of current movie
28)   uint16_t       width;       ///< width of current movie
29)   uint16_t       channels;    ///< channels in current movie
30)   uint16_t       maxval;      ///< maxval of current movie
31)   uint16_t       dataSz;      ///< size of data in a frame
32)   uint16_t       thisFrameMs; /**< time the current frame has already been
33)                                    shown when next action triggers */