Fix include style
[bcusdk.git] / common / loadimage.h
blob3bf122cdf06e62871faf21bbc79c6d2bfd53bcbd
1 /*
2 EIBD eib bus access and management daemon
3 Copyright (C) 2005-2010 Martin Koegler <mkoegler@auto.tuwien.ac.at>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #ifndef LOADIMAGE_H
21 #define LOADIMAGE_H
23 #include "eibloadresult.h"
25 #include "types.h"
27 typedef struct
29 BCU_LOAD_RESULT error;
30 uint8_t obj;
31 uint8_t prop;
32 uint16_t start;
33 CArray req;
34 CArray result;
35 uint16_t memaddr;
36 uint16_t len;
37 } EIBLoadRequest;
39 class BCUImage
41 public:
42 enum
44 B_bcu1, B_bcu20, B_bcu21
45 } BCUType;
46 CArray code;
47 Array < EIBLoadRequest > load;
48 eibaddr_t addr;
49 eibkey_type installkey;
50 Array < eibkey_type > keys;
53 BCU_LOAD_RESULT PrepareLoadImage (const CArray & c, BCUImage * &img);
55 String decodeBCULoadResult (BCU_LOAD_RESULT r);
57 #endif