summaryrefslogtreecommitdiff
path: root/src/class/cdc
diff options
context:
space:
mode:
authorJeff Trull <[email protected]>2023-02-10 15:54:04 -0800
committerJeff Trull <[email protected]>2023-02-10 15:54:04 -0800
commitf48ae4aad7dea10e318bf82d1b59a75a3c325697 (patch)
treef239719e686a1f045cd98cb101e6c8b9ebeb05b7 /src/class/cdc
parent86c416d4c0fb38432460b3e11b08b9de76941bf5 (diff)
Adjust reserved bitfields to make SDCC happy
- keep each field at or under 16b - For optimal packing, segment fields to 8b boundaries
Diffstat (limited to 'src/class/cdc')
-rw-r--r--src/class/cdc/cdc.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/class/cdc/cdc.h b/src/class/cdc/cdc.h
index 2fecde3ca..842ea4dfe 100644
--- a/src/class/cdc/cdc.h
+++ b/src/class/cdc/cdc.h
@@ -377,7 +377,9 @@ typedef struct TU_ATTR_PACKED
uint32_t incoming_distinctive : 1; ///< 0 : Reports only incoming ringing. 1 : Reports incoming distinctive ringing patterns.
uint32_t dual_tone_multi_freq : 1; ///< 0 : Cannot report dual tone multi-frequency (DTMF) digits input remotely over the telephone line. 1 : Can report DTMF digits input remotely over the telephone line.
uint32_t line_state_change : 1; ///< 0 : Does not support line state change notification. 1 : Does support line state change notification
- uint32_t TU_RESERVED : 26;
+ uint32_t TU_RESERVED0 : 2;
+ uint32_t TU_RESERVED1 : 16;
+ uint32_t TU_RESERVED2 : 4;
} bmCapabilities;
}cdc_desc_func_telephone_call_state_reporting_capabilities_t;
@@ -404,7 +406,8 @@ typedef struct TU_ATTR_PACKED
{
uint16_t dtr : 1;
uint16_t rts : 1;
- uint16_t : 14;
+ uint16_t : 6;
+ uint16_t : 8;
} cdc_line_control_state_t;
TU_VERIFY_STATIC(sizeof(cdc_line_control_state_t) == 2, "size is not correct");