Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BSP_DISCO_F746NG_patch mbed-rtos mbed
USBH_MTP_PTP_Private_Functions
[USBH_MTP_PTP]
Functions | |
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. | |
static void | PTP_BufferFullCallback (USBH_HandleTypeDef *phost) |
The function informs user that data buffer is full. | |
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_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. |
Function Documentation
void PTP_BufferFullCallback | ( | USBH_HandleTypeDef * | phost ) | [static] |
The function informs user that data buffer is full.
- Parameters:
-
phost,: host handle
- Return values:
-
None
Definition at line 442 of file usbh_mtp_ptp.c.
static void PTP_DecodeDeviceInfo | ( | USBH_HandleTypeDef * | phost, |
PTP_DeviceInfoTypedef * | dev_info | ||
) | [static] |
PTP_GetDeviceInfo Gets device info dataset and fills deviceinfo structure.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
None
Definition at line 489 of file usbh_mtp_ptp.c.
static uint32_t PTP_GetArray16 | ( | uint16_t * | array, |
uint8_t * | data, | ||
uint32_t | offset | ||
) | [static] |
PTP_GetString Gets SCII String from.
- Parameters:
-
str,: ascii string data,: Device info structure
- Return values:
-
None
Definition at line 836 of file usbh_mtp_ptp.c.
static uint32_t PTP_GetArray32 | ( | uint32_t * | array, |
uint8_t * | data, | ||
uint32_t | offset | ||
) | [static] |
PTP_GetString Gets SCII String from.
- Parameters:
-
str,: ascii string data,: Device info structure
- Return values:
-
None
Definition at line 857 of file usbh_mtp_ptp.c.
static void PTP_GetDevicePropValue | ( | USBH_HandleTypeDef * | phost, |
uint32_t * | offset, | ||
uint32_t | total, | ||
PTP_PropertyValueTypedef * | value, | ||
uint16_t | datatype | ||
) | [static] |
PTP_GetDevicePropValue Gets objectInfo and fills object_info structure.
- Parameters:
-
phost,: Host handle opd,: object prop descriptor structure
- Return values:
-
None
Definition at line 683 of file usbh_mtp_ptp.c.
static void PTP_GetObjectInfo | ( | USBH_HandleTypeDef * | phost, |
PTP_ObjectInfoTypedef * | object_info | ||
) | [static] |
PTP_GetObjectInfo Gets objectInfo and fills object_info structure.
- Parameters:
-
phost,: Host handle object_info,: object info structure
- Return values:
-
None
Definition at line 596 of file usbh_mtp_ptp.c.
static void PTP_GetObjectPropDesc | ( | USBH_HandleTypeDef * | phost, |
PTP_ObjectPropDescTypeDef * | opd, | ||
uint32_t | opdlen | ||
) | [static] |
PTP_GetObjectPropDesc Gets objectInfo and fills object_info structure.
- Parameters:
-
phost,: Host handle opd,: object prop descriptor structure
- Return values:
-
None
Definition at line 634 of file usbh_mtp_ptp.c.
static uint32_t PTP_GetObjectPropList | ( | USBH_HandleTypeDef * | phost, |
MTP_PropertiesTypedef * | props, | ||
uint32_t | len | ||
) | [static] |
PTP_GetDevicePropValue Gets objectInfo and fills object_info structure.
- Parameters:
-
phost,: Host handle opd,: object prop descriptor structure
- Return values:
-
None
Definition at line 753 of file usbh_mtp_ptp.c.
static void PTP_GetStorageIDs | ( | USBH_HandleTypeDef * | phost, |
PTP_StorageIDsTypedef * | stor_ids | ||
) | [static] |
PTP_GetStorageIDs Gets Storage Ids and fills stor_ids structure.
- Parameters:
-
phost,: Host handle stor_ids,: Storage IDsstructure
- Return values:
-
None
Definition at line 555 of file usbh_mtp_ptp.c.
static void PTP_GetStorageInfo | ( | USBH_HandleTypeDef * | phost, |
uint32_t | storage_id, | ||
PTP_StorageInfoTypedef * | stor_info | ||
) | [static] |
PTP_GetStorageInfo Gets Storage Info and fills stor_info structure.
- Parameters:
-
phost,: Host handle stor_ids,: Storage IDsstructure
- Return values:
-
None
Definition at line 571 of file usbh_mtp_ptp.c.
static void PTP_GetString | ( | uint8_t * | str, |
uint8_t * | data, | ||
uint16_t * | len | ||
) | [static] |
PTP_GetString Gets SCII String from.
- Parameters:
-
str,: ascii string data,: Device info structure
- Return values:
-
None
Definition at line 810 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_DeleteObject | ( | USBH_HandleTypeDef * | phost, |
uint32_t | handle, | ||
uint32_t | objectformatcode | ||
) |
USBH_PTP_DeleteObject Delete an object.
- Parameters:
-
phost,: Host handle handle : Object Handle
- Return values:
-
USBH Status
Definition at line 1353 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_GetDeviceInfo | ( | USBH_HandleTypeDef * | phost, |
PTP_DeviceInfoTypedef * | dev_info | ||
) |
USBH_PTP_GetDeviceInfo Gets device info dataset and fills deviceinfo structure.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
USBH Status
Definition at line 995 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_GetDevicePropDesc | ( | USBH_HandleTypeDef * | phost, |
uint16_t | propcode, | ||
PTP_DevicePropDescTypdef * | devicepropertydesc | ||
) |
USBH_PTP_GetDevicePropDesc Gets object partially.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
USBH Status
Definition at line 933 of file usbh_mtp_ptp.c.
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.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
USBH Status
Definition at line 1167 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_GetObject | ( | USBH_HandleTypeDef * | phost, |
uint32_t | handle, | ||
uint8_t * | object | ||
) |
USBH_PTP_GetObject Gets object.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
USBH Status
Definition at line 1405 of file usbh_mtp_ptp.c.
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.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
USBH Status
Definition at line 1227 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_GetObjectInfo | ( | USBH_HandleTypeDef * | phost, |
uint32_t | handle, | ||
PTP_ObjectInfoTypedef * | object_info | ||
) |
USBH_PTP_GetObjectInfo Gets objert info.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
USBH Status
Definition at line 1293 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_GetObjectPropDesc | ( | USBH_HandleTypeDef * | phost, |
uint16_t | opc, | ||
uint16_t | ofc, | ||
PTP_ObjectPropDescTypeDef * | opd | ||
) |
USBH_PTP_GetObjectPropDesc Gets object partially.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
USBH Status
Definition at line 1609 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_GetObjectPropList | ( | USBH_HandleTypeDef * | phost, |
uint32_t | handle, | ||
MTP_PropertiesTypedef * | pprops, | ||
uint32_t * | nrofprops | ||
) |
USBH_PTP_GetObjectPropList Gets object partially.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
USBH Status
Definition at line 1671 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_GetObjectPropsSupported | ( | USBH_HandleTypeDef * | phost, |
uint16_t | ofc, | ||
uint32_t * | propnum, | ||
uint16_t * | props | ||
) |
USBH_PTP_GetObjectPropsSupported Gets object partially.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
USBH Status
Definition at line 1548 of file usbh_mtp_ptp.c.
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.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
USBH Status
Definition at line 1474 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_GetResponse | ( | USBH_HandleTypeDef * | phost, |
PTP_ContainerTypedef * | resp | ||
) |
USBH_PTP_OpenSession Open a new session.
- Parameters:
-
phost,: Host handle
- Return values:
-
USBH Status
Definition at line 419 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_GetStorageIds | ( | USBH_HandleTypeDef * | phost, |
PTP_StorageIDsTypedef * | storage_ids | ||
) |
USBH_PTP_GetStorageIds Gets device info dataset and fills deviceinfo structure.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
USBH Status
Definition at line 1052 of file usbh_mtp_ptp.c.
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.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
USBH Status
Definition at line 1109 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_Init | ( | USBH_HandleTypeDef * | phost ) |
USBH_PTP_Init The function Initializes the BOT protocol.
- Parameters:
-
phost,: Host handle
- Return values:
-
USBH Status
Definition at line 125 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_OpenSession | ( | USBH_HandleTypeDef * | phost, |
uint32_t | session | ||
) |
USBH_PTP_OpenSession Open a new session.
- Parameters:
-
phost,: Host handle session,: Session ID (MUST BE > 0)
- Return values:
-
USBH Status
Definition at line 882 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_Process | ( | USBH_HandleTypeDef * | phost ) |
USBH_PTP_Process The function handle the BOT protocol.
- Parameters:
-
phost,: Host handle lun,: Logical Unit Number
- Return values:
-
USBH Status
Definition at line 143 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_SendObject | ( | USBH_HandleTypeDef * | phost, |
uint32_t | handle, | ||
uint8_t * | object, | ||
uint32_t | size | ||
) |
USBH_PTP_SendObject Send an object.
- Parameters:
-
phost,: Host handle dev_info,: Device info structure
- Return values:
-
USBH Status
Definition at line 1739 of file usbh_mtp_ptp.c.
USBH_StatusTypeDef USBH_PTP_SendRequest | ( | USBH_HandleTypeDef * | phost, |
PTP_ContainerTypedef * | req | ||
) |
USBH_PTP_OpenSession Open a new session.
- Parameters:
-
phost,: Host handle
- Return values:
-
USBH Status
Definition at line 391 of file usbh_mtp_ptp.c.
Generated on Tue Jul 12 2022 14:58:52 by
