Nirvana Jay / Mbed 2 deprecated F7DISCO_Demo

Dependencies:   BSP_DISCO_F746NG_patch mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

usbh_mtp_ptp.c File Reference

usbh_mtp_ptp.c File Reference

This file includes the PTP operations layer. More...

Go to the source code of this file.

Functions

static void PTP_DecodeDeviceInfo (USBH_HandleTypeDef *phost, PTP_DeviceInfoTypedef *dev_info)
 PTP_GetDeviceInfo Gets device info dataset and fills deviceinfo structure.
static void PTP_GetStorageIDs (USBH_HandleTypeDef *phost, PTP_StorageIDsTypedef *stor_ids)
 PTP_GetStorageIDs Gets Storage Ids and fills stor_ids structure.
static void PTP_GetStorageInfo (USBH_HandleTypeDef *phost, uint32_t storage_id, PTP_StorageInfoTypedef *stor_info)
 PTP_GetStorageInfo Gets Storage Info and fills stor_info structure.
static void PTP_GetObjectPropDesc (USBH_HandleTypeDef *phost, PTP_ObjectPropDescTypeDef *opd, uint32_t opdlen)
 PTP_GetObjectPropDesc Gets objectInfo and fills object_info structure.
static void PTP_GetDevicePropValue (USBH_HandleTypeDef *phost, uint32_t *offset, uint32_t total, PTP_PropertyValueTypedef *value, uint16_t datatype)
 PTP_GetDevicePropValue Gets objectInfo and fills object_info structure.
static uint32_t PTP_GetObjectPropList (USBH_HandleTypeDef *phost, MTP_PropertiesTypedef *props, uint32_t len)
 PTP_GetDevicePropValue Gets objectInfo and fills object_info structure.
static void PTP_BufferFullCallback (USBH_HandleTypeDef *phost)
 The function informs user that data buffer is full.
static void PTP_GetString (uint8_t *str, uint8_t *data, uint16_t *len)
 PTP_GetString Gets SCII String from.
static uint32_t PTP_GetArray16 (uint16_t *array, uint8_t *data, uint32_t offset)
 PTP_GetString Gets SCII String from.
static uint32_t PTP_GetArray32 (uint32_t *array, uint8_t *data, uint32_t offset)
 PTP_GetString Gets SCII String from.
USBH_StatusTypeDef USBH_PTP_Init (USBH_HandleTypeDef *phost)
 USBH_PTP_Init The function Initializes the BOT protocol.
USBH_StatusTypeDef USBH_PTP_Process (USBH_HandleTypeDef *phost)
 USBH_PTP_Process The function handle the BOT protocol.
USBH_StatusTypeDef USBH_PTP_SendRequest (USBH_HandleTypeDef *phost, PTP_ContainerTypedef *req)
 USBH_PTP_OpenSession Open a new session.
USBH_StatusTypeDef USBH_PTP_GetResponse (USBH_HandleTypeDef *phost, PTP_ContainerTypedef *resp)
 USBH_PTP_OpenSession Open a new session.
static void PTP_GetObjectInfo (USBH_HandleTypeDef *phost, PTP_ObjectInfoTypedef *object_info)
 PTP_GetObjectInfo Gets objectInfo and fills object_info structure.
USBH_StatusTypeDef USBH_PTP_OpenSession (USBH_HandleTypeDef *phost, uint32_t session)
 USBH_PTP_OpenSession Open a new session.
USBH_StatusTypeDef USBH_PTP_GetDevicePropDesc (USBH_HandleTypeDef *phost, uint16_t propcode, PTP_DevicePropDescTypdef *devicepropertydesc)
 USBH_PTP_GetDevicePropDesc Gets object partially.
USBH_StatusTypeDef USBH_PTP_GetDeviceInfo (USBH_HandleTypeDef *phost, PTP_DeviceInfoTypedef *dev_info)
 USBH_PTP_GetDeviceInfo Gets device info dataset and fills deviceinfo structure.
USBH_StatusTypeDef USBH_PTP_GetStorageIds (USBH_HandleTypeDef *phost, PTP_StorageIDsTypedef *storage_ids)
 USBH_PTP_GetStorageIds Gets device info dataset and fills deviceinfo structure.
USBH_StatusTypeDef USBH_PTP_GetStorageInfo (USBH_HandleTypeDef *phost, uint32_t storage_id, PTP_StorageInfoTypedef *storage_info)
 USBH_PTP_GetDeviceInfo Gets device info dataset and fills deviceinfo structure.
USBH_StatusTypeDef USBH_PTP_GetNumObjects (USBH_HandleTypeDef *phost, uint32_t storage_id, uint32_t objectformatcode, uint32_t associationOH, uint32_t *numobs)
 USBH_PTP_GetNumObjects Gets device info dataset and fills deviceinfo structure.
USBH_StatusTypeDef USBH_PTP_GetObjectHandles (USBH_HandleTypeDef *phost, uint32_t storage_id, uint32_t objectformatcode, uint32_t associationOH, PTP_ObjectHandlesTypedef *objecthandles)
 USBH_PTP_GetObjectHandles Gets device info dataset and fills deviceinfo structure.
USBH_StatusTypeDef USBH_PTP_GetObjectInfo (USBH_HandleTypeDef *phost, uint32_t handle, PTP_ObjectInfoTypedef *object_info)
 USBH_PTP_GetObjectInfo Gets objert info.
USBH_StatusTypeDef USBH_PTP_DeleteObject (USBH_HandleTypeDef *phost, uint32_t handle, uint32_t objectformatcode)
 USBH_PTP_DeleteObject Delete an object.
USBH_StatusTypeDef USBH_PTP_GetObject (USBH_HandleTypeDef *phost, uint32_t handle, uint8_t *object)
 USBH_PTP_GetObject Gets object.
USBH_StatusTypeDef USBH_PTP_GetPartialObject (USBH_HandleTypeDef *phost, uint32_t handle, uint32_t offset, uint32_t maxbytes, uint8_t *object, uint32_t *len)
 USBH_PTP_GetPartialObject Gets object partially.
USBH_StatusTypeDef USBH_PTP_GetObjectPropsSupported (USBH_HandleTypeDef *phost, uint16_t ofc, uint32_t *propnum, uint16_t *props)
 USBH_PTP_GetObjectPropsSupported Gets object partially.
USBH_StatusTypeDef USBH_PTP_GetObjectPropDesc (USBH_HandleTypeDef *phost, uint16_t opc, uint16_t ofc, PTP_ObjectPropDescTypeDef *opd)
 USBH_PTP_GetObjectPropDesc Gets object partially.
USBH_StatusTypeDef USBH_PTP_GetObjectPropList (USBH_HandleTypeDef *phost, uint32_t handle, MTP_PropertiesTypedef *pprops, uint32_t *nrofprops)
 USBH_PTP_GetObjectPropList Gets object partially.
USBH_StatusTypeDef USBH_PTP_SendObject (USBH_HandleTypeDef *phost, uint32_t handle, uint8_t *object, uint32_t size)
 USBH_PTP_SendObject Send an object.

Detailed Description

This file includes the PTP operations layer.

Author:
MCD Application Team
Version:
V3.2.2
Date:
07-July-2015
Attention:

© COPYRIGHT 2015 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.

Definition in file usbh_mtp_ptp.c.