refactored the encode and decode of unsigned16 and unsigned32.

This commit is contained in:
skarg
2005-03-16 16:17:35 +00:00
parent 1190ff8380
commit ceaae8ca5e
2 changed files with 101 additions and 131 deletions
+4 -1
View File
@@ -136,8 +136,11 @@ int decode_date(uint8_t * apdu, int *year, int *month, int *day,
int *wday);
// two octet unsigned16
int encode_bacnet_unsigned16(uint8_t * apdu, uint16_t value);
int encode_unsigned16(uint8_t * apdu, uint16_t value);
int decode_unsigned16(uint8_t * apdu, uint16_t *value);
// four octet unsigned32
int encode_unsigned32(uint8_t * apdu, uint32_t value);
int decode_unsigned32(uint8_t * apdu, uint32_t *value);
// from clause 20.1.2.4 max-segments-accepted
// and clause 20.1.2.5 max-APDU-length-accepted