Increase TX_DATA.request TB buffer size to be allocated in the stack with 2MB, fix compute_PDU_Length to not truncate value and fix packing procedure to use buffer size as the upper limit instead of hardcoded value

This commit is contained in:
Rúben Soares Silva
2024-06-25 13:50:53 +01:00
parent 297ef9d139
commit 4033606fff
4 changed files with 38 additions and 34 deletions
@@ -26,10 +26,11 @@
// Extension to the generic structures for single tlv values
typedef struct {
/// Value: 0 -> 1, 0: Payload is carried directly in the value field, 1: Pointer to payload is in the value field
uint16_t tag;
/// Length of the actual payload in bytes, without the padding bytes Value: 0 → 65535
uint16_t length;
/// Value: 0 -> 1, 0: Payload is carried directly in the value field, 1: Pointer to payload is in the value field
uint16_t tag;
/// Length of the actual payload in bytes, without the padding bytes Value: 0 → 0xFFFFFFFF
/// Note: This change to uint32_t is a deviation from version 10.02 of the SCF222 standard
uint32_t length;
union {
uint32_t *ptr;
uint32_t direct[38016];