You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uint8_tbLength ; ///< Size of this descriptor in bytes.
218
222
uint8_tbDescriptorType ; ///< Descriptor Type, must be Class-Specific
219
-
uint8_tbDescriptorSubType ; ///< Descriptor SubType one of above CDC_FUCN_DESC_
223
+
uint8_tbDescriptorSubType ; ///< Descriptor SubType one of above CDC_FUNC_DESC_
220
224
uint16_tbcdCDC ; ///< CDC release number in Binary-Coded Decimal
221
225
}cdc_desc_func_header_t;
222
226
223
227
/// Union Functional Descriptor (Communication Interface)
224
-
typedefstructATTR_PACKED
228
+
typedefstructTU_ATTR_PACKED
225
229
{
226
230
uint8_tbLength ; ///< Size of this descriptor in bytes.
227
231
uint8_tbDescriptorType ; ///< Descriptor Type, must be Class-Specific
@@ -231,7 +235,7 @@ typedef struct ATTR_PACKED
231
235
}cdc_desc_func_union_t;
232
236
233
237
#definecdc_desc_func_union_n_t(no_slave)\
234
-
struct ATTR_PACKED { \
238
+
struct TU_ATTR_PACKED { \
235
239
uint8_t bLength ;\
236
240
uint8_t bDescriptorType ;\
237
241
uint8_t bDescriptorSubType ;\
@@ -240,17 +244,17 @@ typedef struct ATTR_PACKED
240
244
}
241
245
242
246
/// Country Selection Functional Descriptor (Communication Interface)
243
-
typedefstructATTR_PACKED
247
+
typedefstructTU_ATTR_PACKED
244
248
{
245
249
uint8_tbLength ; ///< Size of this descriptor in bytes.
246
250
uint8_tbDescriptorType ; ///< Descriptor Type, must be Class-Specific
247
251
uint8_tbDescriptorSubType ; ///< Descriptor SubType one of above CDC_FUCN_DESC_
248
252
uint8_tiCountryCodeRelDate ; ///< Index of a string giving the release date for the implemented ISO 3166 Country Codes.
249
-
uint16_twCountryCode[] ; ///< Country code in the format as defined in [ISO3166], release date as specified inoffset 3 for the first supported country.
253
+
uint16_twCountryCode ; ///< Country code in the format as defined in [ISO3166], release date as specified inoffset 3 for the first supported country.
/// \details This functional descriptor describes the processing of calls for the Communications Class interface.
267
-
typedefstructATTR_PACKED
271
+
typedefstructTU_ATTR_PACKED
268
272
{
269
273
uint8_tbLength ; ///< Size of this descriptor in bytes.
270
274
uint8_tbDescriptorType ; ///< Descriptor Type, must be Class-Specific
@@ -280,7 +284,7 @@ typedef struct ATTR_PACKED
280
284
}cdc_desc_func_call_management_t;
281
285
282
286
283
-
typedefstructATTR_PACKED
287
+
typedefstructTU_ATTR_PACKED
284
288
{
285
289
uint8_tsupport_comm_request : 1; ///< Device supports the request combination of Set_Comm_Feature, Clear_Comm_Feature, and Get_Comm_Feature.
286
290
uint8_tsupport_line_request : 1; ///< Device supports the request combination of Set_Line_Coding, Set_Control_Line_State, Get_Line_Coding, and the notification Serial_State.
@@ -293,7 +297,7 @@ TU_VERIFY_STATIC(sizeof(cdc_acm_capability_t) == 1, "mostly problem with compile
293
297
294
298
/// \brief Abstract Control Management Functional Descriptor
295
299
/// \details This functional descriptor describes the commands supported by by the Communications Class interface with SubClass code of \ref CDC_COMM_SUBCLASS_ABSTRACT_CONTROL_MODEL
296
-
typedefstructATTR_PACKED
300
+
typedefstructTU_ATTR_PACKED
297
301
{
298
302
uint8_tbLength ; ///< Size of this descriptor in bytes.
299
303
uint8_tbDescriptorType ; ///< Descriptor Type, must be Class-Specific
@@ -303,7 +307,7 @@ typedef struct ATTR_PACKED
303
307
304
308
/// \brief Direct Line Management Functional Descriptor
305
309
/// \details This functional descriptor describes the commands supported by the Communications Class interface with SubClass code of \ref CDC_FUNC_DESC_DIRECT_LINE_MANAGEMENT
306
-
typedefstructATTR_PACKED
310
+
typedefstructTU_ATTR_PACKED
307
311
{
308
312
uint8_tbLength ; ///< Size of this descriptor in bytes.
309
313
uint8_tbDescriptorType ; ///< Descriptor Type, must be Class-Specific
@@ -319,7 +323,7 @@ typedef struct ATTR_PACKED
319
323
/// \brief Telephone Ringer Functional Descriptor
320
324
/// \details The Telephone Ringer functional descriptor describes the ringer capabilities supported by the Communications Class interface,
321
325
/// with the SubClass code of \ref CDC_COMM_SUBCLASS_TELEPHONE_CONTROL_MODEL
322
-
typedefstructATTR_PACKED
326
+
typedefstructTU_ATTR_PACKED
323
327
{
324
328
uint8_tbLength ; ///< Size of this descriptor in bytes.
325
329
uint8_tbDescriptorType ; ///< Descriptor Type, must be Class-Specific
0 commit comments