refactored the encode and decode of unsigned16 and unsigned32.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user