NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
usb_prop.c File Reference

All processing related to Virtual Com Port Demo. More...

#include "usb_lib.h"
#include "usb_conf.h"
#include "usb_prop.h"
#include "usb_desc.h"
#include "usb_pwr.h"
#include "hw_config.h"
Include dependency graph for usb_prop.c:

Functions

void NOP_Process (void)
 
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_t * Virtual_Com_Port_GetDeviceDescriptor (uint16_t Length)
 
uint8_t * Virtual_Com_Port_GetConfigDescriptor (uint16_t Length)
 
uint8_t * Virtual_Com_Port_GetStringDescriptor (uint16_t Length)
 
RESULT Virtual_Com_Port_Get_Interface_Setting (uint8_t Interface, uint8_t AlternateSetting)
 
uint8_t * Virtual_Com_Port_GetLineCoding (uint16_t Length)
 
uint8_t * Virtual_Com_Port_SetLineCoding (uint16_t Length)
 
uint32_t Virtual_Com_Port_GetBaudRate (void)
 

Variables

uint8_t Request = 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]
 

Detailed Description

All processing related to Virtual Com Port Demo.

Author
MCD Application Team
Version
V4.0.0
Date
21-January-2013
Attention

© COPYRIGHT 2013 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (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.st.com/software_license_agreement_liberty_v2

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.

Function Documentation

void NOP_Process ( void  )
RESULT Virtual_Com_Port_Data_Setup ( uint8_t  RequestNo)

Here is the call graph for this function:

RESULT Virtual_Com_Port_Get_Interface_Setting ( uint8_t  Interface,
uint8_t  AlternateSetting 
)
uint32_t Virtual_Com_Port_GetBaudRate ( void  )
uint8_t* Virtual_Com_Port_GetConfigDescriptor ( uint16_t  Length)
uint8_t* Virtual_Com_Port_GetDeviceDescriptor ( uint16_t  Length)
uint8_t* Virtual_Com_Port_GetLineCoding ( uint16_t  Length)
uint8_t* Virtual_Com_Port_GetStringDescriptor ( uint16_t  Length)
void Virtual_Com_Port_init ( void  )

Here is the call graph for this function:

RESULT Virtual_Com_Port_NoData_Setup ( uint8_t  RequestNo)
void Virtual_Com_Port_Reset ( void  )
void Virtual_Com_Port_SetConfiguration ( void  )
void Virtual_Com_Port_SetDeviceAddress ( void  )
uint8_t* Virtual_Com_Port_SetLineCoding ( uint16_t  Length)
void Virtual_Com_Port_Status_In ( void  )
void Virtual_Com_Port_Status_Out ( void  )

Variable Documentation

ONE_DESCRIPTOR Config_Descriptor
Initial value:
#define VIRTUAL_COM_PORT_SIZ_CONFIG_DESC
Definition: usb_desc.h:47
const uint8_t Virtual_Com_Port_ConfigDescriptor[]
Definition: usb_desc.c:49
ONE_DESCRIPTOR Device_Descriptor
Initial value:
const uint8_t Virtual_Com_Port_DeviceDescriptor[]
Definition: usb_desc.c:33
#define VIRTUAL_COM_PORT_SIZ_DEVICE_DESC
Definition: usb_desc.h:46
DEVICE_PROP Device_Property
Initial value:
}
void Virtual_Com_Port_Reset(void)
Definition: usb_prop.c:115
RESULT Virtual_Com_Port_NoData_Setup(uint8_t RequestNo)
Definition: usb_prop.c:257
uint8_t * Virtual_Com_Port_GetStringDescriptor(uint16_t Length)
Definition: usb_prop.c:302
void Virtual_Com_Port_init(void)
Definition: usb_prop.c:90
uint8_t * Virtual_Com_Port_GetDeviceDescriptor(uint16_t Length)
Definition: usb_prop.c:278
RESULT Virtual_Com_Port_Data_Setup(uint8_t RequestNo)
Definition: usb_prop.c:223
RESULT Virtual_Com_Port_Get_Interface_Setting(uint8_t Interface, uint8_t AlternateSetting)
Definition: usb_prop.c:321
uint8_t * Virtual_Com_Port_GetConfigDescriptor(uint16_t Length)
Definition: usb_prop.c:290
void Virtual_Com_Port_Status_In(void)
Definition: usb_prop.c:198
void Virtual_Com_Port_Status_Out(void)
Definition: usb_prop.c:212
DEVICE Device_Table
Initial value:
= {
EP_NUM, 1 }
#define EP_NUM
Definition: usb_conf.h:44
LINE_CODING linecoding
Initial value:
= { 115200,
0x00,
0x00,
0x08
}
uint8_t Request = 0
ONE_DESCRIPTOR String_Descriptor[4]
Initial value:
#define VIRTUAL_COM_PORT_SIZ_STRING_VENDOR
Definition: usb_desc.h:49
uint8_t Virtual_Com_Port_StringSerial[VIRTUAL_COM_PORT_SIZ_STRING_SERIAL]
Definition: usb_desc.c:144
#define VIRTUAL_COM_PORT_SIZ_STRING_SERIAL
Definition: usb_desc.h:51
const uint8_t Virtual_Com_Port_StringLangID[VIRTUAL_COM_PORT_SIZ_STRING_LANGID]
Definition: usb_desc.c:127
const uint8_t Virtual_Com_Port_StringProduct[VIRTUAL_COM_PORT_SIZ_STRING_PRODUCT]
Definition: usb_desc.c:138
const uint8_t Virtual_Com_Port_StringVendor[VIRTUAL_COM_PORT_SIZ_STRING_VENDOR]
Definition: usb_desc.c:132
#define VIRTUAL_COM_PORT_SIZ_STRING_PRODUCT
Definition: usb_desc.h:50
#define VIRTUAL_COM_PORT_SIZ_STRING_LANGID
Definition: usb_desc.h:48
USER_STANDARD_REQUESTS User_Standard_Requests
Initial value:
= {
#define Virtual_Com_Port_GetStatus
Definition: usb_prop.h:49
void Virtual_Com_Port_SetConfiguration(void)
Definition: usb_prop.c:169
#define Virtual_Com_Port_GetInterface
Definition: usb_prop.h:47
#define Virtual_Com_Port_ClearFeature
Definition: usb_prop.h:50
void Virtual_Com_Port_SetDeviceAddress(void)
Definition: usb_prop.c:186
#define Virtual_Com_Port_GetConfiguration
Definition: usb_prop.h:45
#define Virtual_Com_Port_SetInterface
Definition: usb_prop.h:48
#define Virtual_Com_Port_SetEndPointFeature
Definition: usb_prop.h:51
#define Virtual_Com_Port_SetDeviceFeature
Definition: usb_prop.h:52