Nut/OS  5.0.5
API Reference
stm32_usb_prop.c File Reference
Include dependency graph for stm32_usb_prop.c:

Functions

void Virtual_Com_Port_init (void)
void Virtual_Com_Port_Reset (void)
void Virtual_Com_Port_SetConfiguration (void)
void Virtual_Com_Port_SetDeviceAddress (void)
void Virtual_Com_Port_Status_In (void)
void Virtual_Com_Port_Status_Out (void)
RESULT Virtual_Com_Port_Data_Setup (uint8_t RequestNo)
RESULT Virtual_Com_Port_NoData_Setup (uint8_t RequestNo)
uint8_tVirtual_Com_Port_GetDeviceDescriptor (uint16_t Length)
uint8_tVirtual_Com_Port_GetConfigDescriptor (uint16_t Length)
uint8_tVirtual_Com_Port_GetStringDescriptor (uint16_t Length)
RESULT Virtual_Com_Port_Get_Interface_Setting (uint8_t Interface, uint8_t AlternateSetting)
uint8_tVirtual_Com_Port_GetLineCoding (uint16_t Length)
uint8_tVirtual_Com_Port_SetLineCoding (uint16_t Length)

Variables

uint8_t Request = 0
uint8_t RTS = 0
uint8_t DTR = 0
LINE_CODING linecoding
DEVICE Device_Table
DEVICE_PROP Device_Property
USER_STANDARD_REQUESTS User_Standard_Requests
ONE_DESCRIPTOR Device_Descriptor
ONE_DESCRIPTOR Config_Descriptor
ONE_DESCRIPTOR String_Descriptor [4]

Function Documentation

void Virtual_Com_Port_init ( void  )

References bDeviceState, _DEVICE_INFO::Current_Configuration, OTG_DEV_Init(), pInformation, and UNCONNECTED.

Here is the call graph for this function:

void Virtual_Com_Port_Reset ( void  )

References ATTACHED, bDeviceState, _DEVICE_INFO::Current_Configuration, _DEVICE_INFO::Current_Feature, _DEVICE_INFO::Current_Interface, EP1_IN, EP3_OUT, OTG_DEV_EP_Init(), OTG_DEV_EP_TYPE_BULK, pInformation, Virtual_Com_Port_ConfigDescriptor, and VIRTUAL_COM_PORT_DATA_SIZE.

Here is the call graph for this function:

void Virtual_Com_Port_SetConfiguration ( void  )
void Virtual_Com_Port_SetDeviceAddress ( void  )

References ADDRESSED, and bDeviceState.

void Virtual_Com_Port_Status_In ( void  )

References Request, and SET_LINE_CODING.

void Virtual_Com_Port_Status_Out ( void  )
RESULT Virtual_Com_Port_Data_Setup ( uint8_t  RequestNo)

References CLASS_REQUEST, _ENDPOINT_INFO::CopyData, _DEVICE_INFO::Ctrl_Info, GET_LINE_CODING, INTERFACE_RECIPIENT, NULL, pInformation, Request, SET_LINE_CODING, Type_Recipient, USB_SUCCESS, USB_UNSUPPORT, _ENDPOINT_INFO::Usb_wOffset, Virtual_Com_Port_GetLineCoding(), and Virtual_Com_Port_SetLineCoding().

Here is the call graph for this function:

uint8_t* Virtual_Com_Port_GetDeviceDescriptor ( uint16_t  Length)

References Standard_GetDescriptorData().

Here is the call graph for this function:

uint8_t* Virtual_Com_Port_GetConfigDescriptor ( uint16_t  Length)

References Standard_GetDescriptorData().

Here is the call graph for this function:

uint8_t* Virtual_Com_Port_GetStringDescriptor ( uint16_t  Length)

References NULL, pInformation, and Standard_GetDescriptorData().

Here is the call graph for this function:

RESULT Virtual_Com_Port_Get_Interface_Setting ( uint8_t  Interface,
uint8_t  AlternateSetting 
)

References USB_SUCCESS, and USB_UNSUPPORT.

uint8_t* Virtual_Com_Port_GetLineCoding ( uint16_t  Length)
uint8_t* Virtual_Com_Port_SetLineCoding ( uint16_t  Length)

Variable Documentation

 * $Id: stm32_usb_prop.c 4268 2012-06-15 13:24:08Z haraldkipp $
 * 

Referenced by Virtual_Com_Port_Data_Setup(), and Virtual_Com_Port_Status_In().

Initial value:
  {
    115200, 
    0x00,   
    0x00,   
    0x08    
  }

Referenced by Virtual_Com_Port_GetLineCoding(), and Virtual_Com_Port_SetLineCoding().