OpenV2G
DecoderChannel.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007-2018 Siemens AG
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published
6  * by the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /*******************************************************************
19  *
20  * @author Daniel.Peintner.EXT@siemens.com
21  * @version 2017-03-02
22  * @contact Richard.Kuntschke@siemens.com
23  *
24  * <p>Code generated by EXIdizer</p>
25  * <p>Schema: V2G_CI_MsgDef.xsd</p>
26  *
27  *
28  ********************************************************************/
29 
30 
31 
38 #ifndef DECODER_CHANNEL_H
39 #define DECODER_CHANNEL_H
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 #include "EXIOptions.h"
46 #include "EXITypes.h"
47 
56 int decode(bitstream_t* stream, uint8_t* b);
57 
58 
70 int decodeBoolean(bitstream_t* stream, int* b);
71 
72 
84 int decodeNBitUnsignedInteger(bitstream_t* stream, size_t nbits, uint32_t* uint32);
85 
86 
101 
102 
116 int decodeUnsignedInteger16(bitstream_t* stream, uint16_t* uint16);
117 
118 
132 int decodeUnsignedInteger32(bitstream_t* stream, uint32_t* uint32);
133 
134 
148 int decodeUnsignedIntegerSizeT(bitstream_t* stream, size_t* sizeT);
149 
150 
164 int decodeUnsignedInteger64(bitstream_t* stream, uint64_t* uint64);
165 
166 
180 int decodeInteger(bitstream_t* stream, exi_integer_t* iv);
181 
182 
196 int decodeInteger16(bitstream_t* stream, int16_t* int16);
197 
198 
212 int decodeInteger32(bitstream_t* stream, int32_t* int32);
213 
214 
228 int decodeInteger64(bitstream_t* stream, int64_t* int64);
229 
230 
244 int decodeFloat(bitstream_t* stream, exi_float_me_t* f);
245 
246 
263 int decodeDecimal(bitstream_t* stream, exi_decimal_t* d);
264 
265 
277 int decodeStringOnly(bitstream_t* stream, size_t len, exi_string_t* s);
278 
279 
290 int decodeString(bitstream_t* stream, exi_string_t* s);
291 
292 
293 
311 int decodeStringValue(bitstream_t* stream, exi_value_string_table_t* stringTable, size_t namespaceUriID, size_t localNameID, exi_string_value_t* s);
312 
313 
326 int decodeRCSStringValue(bitstream_t* stream, exi_value_string_table_t* stringTable, size_t namespaceUriID, size_t localNameID, exi_rcs_t* rcs, exi_string_value_t* s);
327 
328 
341 int decodeCharacters(bitstream_t* stream, size_t len, exi_string_character_t* chars, size_t charsSize);
342 
343 
359 int decodeRCSCharacters(bitstream_t* stream, size_t len, exi_string_character_t* chars, size_t charsSize, size_t rcsCodeLength, size_t rcsSize, const exi_string_character_t rcsSet[]);
360 
361 
362 
373 int decodeBinary(bitstream_t* stream, exi_bytes_t* bytes);
374 
386 int decodeBytes(bitstream_t* stream, size_t len, uint8_t* data);
387 
400 int decodeDateTime(bitstream_t* stream, exi_datetime_type_t type, exi_datetime_t* datetime);
401 
402 
403 #ifdef __cplusplus
404 }
405 #endif
406 
407 #endif
int decodeUnsignedInteger64(bitstream_t *stream, uint64_t *uint64)
Decode unsigned integer.
Definition: DecoderChannel.c:250
int decodeUnsignedIntegerSizeT(bitstream_t *stream, size_t *sizeT)
Decode unsigned integer.
Definition: DecoderChannel.c:212
int decodeBinary(bitstream_t *stream, exi_bytes_t *bytes)
Decode Binary.
Definition: DecoderChannel.c:532
int decodeUnsignedInteger32(bitstream_t *stream, uint32_t *uint32)
Decode unsigned integer.
Definition: DecoderChannel.c:189
Integer value container.
Definition: EXITypes.h:323
int decodeInteger(bitstream_t *stream, exi_integer_t *iv)
Decode integer.
Definition: DecoderChannel.c:266
Float value container.
Definition: EXITypes.h:350
int decodeStringOnly(bitstream_t *stream, size_t len, exi_string_t *s)
Decode String (no length prefix)
Definition: DecoderChannel.c:395
EXI Options for the EXI Codec.
int decodeRCSCharacters(bitstream_t *stream, size_t len, exi_string_character_t *chars, size_t charsSize, size_t rcsCodeLength, size_t rcsSize, const exi_string_character_t rcsSet[])
Decode restricted character set characters.
Definition: DecoderChannel.c:480
int decodeStringValue(bitstream_t *stream, exi_value_string_table_t *stringTable, size_t namespaceUriID, size_t localNameID, exi_string_value_t *s)
Decode String value.
int decodeBytes(bitstream_t *stream, size_t len, uint8_t *data)
Decode Binary data.
Definition: DecoderChannel.c:554
Bit stream container.
Definition: EXITypes.h:158
int decodeNBitUnsignedInteger(bitstream_t *stream, size_t nbits, uint32_t *uint32)
Decode n-bit unsigned integer.
Definition: DecoderChannel.c:703
Decimal value container.
Definition: EXITypes.h:359
Restricted Characeter Set.
Definition: EXITypes.h:301
exi_datetime_type_t
EXI Datetime types.
Definition: EXITypes.h:235
int decodeRCSStringValue(bitstream_t *stream, exi_value_string_table_t *stringTable, size_t namespaceUriID, size_t localNameID, exi_rcs_t *rcs, exi_string_value_t *s)
Decode Restricted characters set string value.
Definition: EXITypes.h:524
uint32_t exi_string_character_t
EXI string character.
Definition: EXITypes.h:271
int decodeUnsignedInteger(bitstream_t *stream, exi_integer_t *iv)
Decode unsigned integer.
Definition: DecoderChannel.c:163
Basic type definitions and structs.
int decodeString(bitstream_t *stream, exi_string_t *s)
Decode String.
Definition: DecoderChannel.c:427
int decodeDateTime(bitstream_t *stream, exi_datetime_type_t type, exi_datetime_t *datetime)
Decode DateTime.
Definition: DecoderChannel.c:571
int decodeDecimal(bitstream_t *stream, exi_decimal_t *d)
Decode decimal.
Definition: DecoderChannel.c:380
int decodeUnsignedInteger16(bitstream_t *stream, uint16_t *uint16)
Decode unsigned integer.
Definition: DecoderChannel.c:167
int decodeInteger32(bitstream_t *stream, int32_t *int32)
Decode integer.
Definition: DecoderChannel.c:310
int decodeInteger16(bitstream_t *stream, int16_t *int16)
Decode integer.
Definition: DecoderChannel.c:283
int decodeBoolean(bitstream_t *stream, int *b)
Decode boolean.
Definition: DecoderChannel.c:683
int decodeFloat(bitstream_t *stream, exi_float_me_t *f)
Decode float.
Definition: DecoderChannel.c:364
int decodeCharacters(bitstream_t *stream, size_t len, exi_string_character_t *chars, size_t charsSize)
Decode characters.
Definition: DecoderChannel.c:440
int decode(bitstream_t *stream, uint8_t *b)
Decode byte value.
Definition: DecoderChannel.c:648
int decodeInteger64(bitstream_t *stream, int64_t *int64)
Decode integer.
Definition: DecoderChannel.c:337
Universal Character Set (UCS) strings.
Definition: EXITypes.h:277
Byte value container.
Definition: EXITypes.h:312
Datetime value container.
Definition: EXITypes.h:370
String value.
Definition: EXITypes.h:288