Arrow / Mbed OS DAPLink Reset
Embed: (wiki syntax)

« Back to documentation index

usbd_user_cdc_acm.c File Reference

usbd_user_cdc_acm.c File Reference

implementation of USB CDC ACM middleware More...

Go to the source code of this file.

Functions

int32_t USBD_CDC_ACM_PortInitialize (void)
 Vitual COM Port initialization.
int32_t USBD_CDC_ACM_PortUninitialize (void)
 Vitual COM Port uninitialization.
int32_t USBD_CDC_ACM_PortReset (void)
 Vitual COM Port reset.
int32_t USBD_CDC_ACM_PortSetLineCoding (CDC_LINE_CODING *line_coding)
 Virtual COM Port change communication settings.
int32_t USBD_CDC_ACM_PortGetLineCoding (CDC_LINE_CODING *line_coding)
 Vitual COM Port retrieve communication settings.
int32_t USBD_CDC_ACM_PortSetControlLineState (uint16_t ctrl_bmp)
 Virtual COM Port set control line state.

Detailed Description

implementation of USB CDC ACM middleware

DAPLink Interface Firmware Copyright (c) 2009-2019, ARM Limited, All Rights Reserved SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file usbd_user_cdc_acm.c.


Function Documentation

int32_t USBD_CDC_ACM_PortGetLineCoding ( CDC_LINE_CODING *  line_coding )

Vitual COM Port retrieve communication settings.

The function retrieves communication settings of the port used as the Virtual COM Port.

Parameters:
[in]line_codingPointer to the CDC_LINE_CODING structure.
Returns:
0 Function failed.
1 Function succeeded.

Definition at line 104 of file usbd_user_cdc_acm.c.

int32_t USBD_CDC_ACM_PortInitialize ( void   )

Vitual COM Port initialization.

The function inititalizes the hardware resources of the port used as the Virtual COM Port.

Returns:
0 Function failed.
1 Function succeeded.

Definition at line 41 of file usbd_user_cdc_acm.c.

int32_t USBD_CDC_ACM_PortReset ( void   )

Vitual COM Port reset.

The function resets the internal states of the port used as the Virtual COM Port.

Returns:
0 Function failed.
1 Function succeeded.

Definition at line 70 of file usbd_user_cdc_acm.c.

int32_t USBD_CDC_ACM_PortSetControlLineState ( uint16_t  ctrl_bmp )

Virtual COM Port set control line state.

The function sets control line state on the port used as the Virtual COM Port.

Parameters:
[in]ctrl_bmpControl line settings bitmap (0. bit - DTR state, 1. bit - RTS state).
Returns:
0 Function failed.
1 Function succeeded.

Definition at line 149 of file usbd_user_cdc_acm.c.

int32_t USBD_CDC_ACM_PortSetLineCoding ( CDC_LINE_CODING *  line_coding )

Virtual COM Port change communication settings.

The function changes communication settings of the port used as the Virtual COM Port.

Parameters:
[in]line_codingPointer to the loaded CDC_LINE_CODING structure.
Returns:
0 Function failed.
1 Function succeeded.

Definition at line 85 of file usbd_user_cdc_acm.c.

int32_t USBD_CDC_ACM_PortUninitialize ( void   )

Vitual COM Port uninitialization.

The function uninititalizes/releases the hardware resources of the port used as the Virtual COM Port.

Returns:
0 Function failed.
1 Function succeeded.

Definition at line 56 of file usbd_user_cdc_acm.c.