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
#defineCDC_REQ_TYPE_NOTIF 0xA1 ///< Direction IN; Type Class; Recipient Interface
225
+
212
226
/// 6.3 Notification Codes
213
227
typedefenum {
214
-
CDC_NOTIF_NETWORK_CONNECTION=0x00, ///< This notification allows the device to notify the host about network connection status.
215
-
CDC_NOTIF_RESPONSE_AVAILABLE=0x01, ///< This notification allows the device to notify the hostthat a response is available. This response can be retrieved with a subsequent \ref CDC_REQUEST_GET_ENCAPSULATED_RESPONSE request.
228
+
CDC_NOTIF_NETWORK_CONNECTION=0x00, // notify the host about network connection status.
229
+
CDC_NOTIF_RESPONSE_AVAILABLE=0x01, //notify the host that a response is available.
216
230
CDC_NOTIF_AUX_JACK_HOOK_STATE=0x08,
217
231
CDC_NOTIF_RING_DETECT=0x09,
218
232
CDC_NOTIF_SERIAL_STATE=0x20,
219
233
CDC_NOTIF_CALL_STATE_CHANGE=0x28,
220
234
CDC_NOTIF_LINE_STATE_CHANGE=0x29,
221
-
CDC_NOTIF_CONNECTION_SPEED_CHANGE=0x2A, ///< This notification allows the device to inform the host-networking driver that a change in either the upstream or the downstream bit rate of the connection has occurred
235
+
CDC_NOTIF_CONNECTION_SPEED_CHANGE=0x2A, // notify the host-networking driver that a change in either the upstream or the downstream bit rate of the connection has occurred
/// \details This functional descriptor describes the processing of calls for the Communications Class interface.
286
-
typedefstructTU_ATTR_PACKED
287
-
{
297
+
typedefstructTU_ATTR_PACKED {
288
298
uint8_tbLength ; ///< Size of this descriptor in bytes.
289
299
uint8_tbDescriptorType ; ///< Descriptor Type, must be Class-Specific
290
300
uint8_tbDescriptorSubType ; ///< Descriptor SubType one of above CDC_FUCN_DESC_
@@ -298,8 +308,7 @@ typedef struct TU_ATTR_PACKED
298
308
uint8_tbDataInterface;
299
309
}cdc_desc_func_call_management_t;
300
310
301
-
typedefstructTU_ATTR_PACKED
302
-
{
311
+
typedefstructTU_ATTR_PACKED {
303
312
uint8_tsupport_comm_request : 1; ///< Device supports the request combination of Set_Comm_Feature, Clear_Comm_Feature, and Get_Comm_Feature.
304
313
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.
305
314
uint8_tsupport_send_break : 1; ///< Device supports the request Send_Break
@@ -311,8 +320,7 @@ TU_VERIFY_STATIC(sizeof(cdc_acm_capability_t) == 1, "mostly problem with compile
311
320
312
321
/// Abstract Control Management Functional Descriptor
313
322
/// This functional descriptor describes the commands supported by by the Communications Class interface with SubClass code of \ref CDC_COMM_SUBCLASS_ABSTRACT_CONTROL_MODEL
314
-
typedefstructTU_ATTR_PACKED
315
-
{
323
+
typedefstructTU_ATTR_PACKED {
316
324
uint8_tbLength ; ///< Size of this descriptor in bytes.
317
325
uint8_tbDescriptorType ; ///< Descriptor Type, must be Class-Specific
318
326
uint8_tbDescriptorSubType ; ///< Descriptor SubType one of above CDC_FUCN_DESC_
@@ -321,8 +329,7 @@ typedef struct TU_ATTR_PACKED
321
329
322
330
/// \brief Direct Line Management Functional Descriptor
323
331
/// \details This functional descriptor describes the commands supported by the Communications Class interface with SubClass code of \ref CDC_FUNC_DESC_DIRECT_LINE_MANAGEMENT
324
-
typedefstructTU_ATTR_PACKED
325
-
{
332
+
typedefstructTU_ATTR_PACKED {
326
333
uint8_tbLength ; ///< Size of this descriptor in bytes.
327
334
uint8_tbDescriptorType ; ///< Descriptor Type, must be Class-Specific
328
335
uint8_tbDescriptorSubType ; ///< Descriptor SubType one of above CDC_FUCN_DESC_
0 commit comments