STM32_USB_Host_Library
_MTP_Process::ptp
is only used within STM32_USB_Host_Library.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
STM32_USB_Host_Library
_MTP_Process::ptp
_MTP_Process::ptp field
Syntax
from
usbh_mtp.h:132
PTP_HandleTypeDef
ptp
;
References
Location
Referrer
Text
usbh_mtp.h:132
PTP_HandleTypeDef
ptp
;
usbh_mtp_ptp.c:129
USBH_PTP_Init()
MTP_Handle
->
ptp
.
state
=
PTP_IDLE
;
usbh_mtp_ptp.c:130
USBH_PTP_Init()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_SEND
;
usbh_mtp_ptp.c:150
USBH_PTP_Process()
switch
(
MTP_Handle
->
ptp
.
state
)
usbh_mtp_ptp.c:158
USBH_PTP_Process()
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
op_container
)
,
usbh_mtp_ptp.c:159
USBH_PTP_Process()
(
uint16_t
)
MTP_Handle
->
ptp
.
op_container
.
length
,
usbh_mtp_ptp.c:162
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_WAIT_STATE
;
usbh_mtp_ptp.c:170
USBH_PTP_Process()
if
(
MTP_Handle
->
ptp
.
flags
==
PTP_DP_NODATA
)
usbh_mtp_ptp.c:172
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_RESPONSE_STATE
;
usbh_mtp_ptp.c:174
USBH_PTP_Process()
else
if
(
MTP_Handle
->
ptp
.
flags
==
PTP_DP_SENDDATA
)
usbh_mtp_ptp.c:176
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_DATA_OUT_PHASE_STATE
;
usbh_mtp_ptp.c:178
USBH_PTP_Process()
else
if
(
MTP_Handle
->
ptp
.
flags
==
PTP_DP_GETDATA
)
usbh_mtp_ptp.c:180
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_DATA_IN_PHASE_STATE
;
usbh_mtp_ptp.c:198
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:211
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_ERROR
;
usbh_mtp_ptp.c:230
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_ptr
,
usbh_mtp_ptp.c:236
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_DATA_OUT_PHASE_WAIT_STATE
;
usbh_mtp_ptp.c:245
USBH_PTP_Process()
if
(
MTP_Handle
->
ptp
.
data_length
>
MTP_Handle
->
DataOutEpSize
)
usbh_mtp_ptp.c:247
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_ptr
+=
MTP_Handle
->
DataOutEpSize
;
usbh_mtp_ptp.c:248
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_length
-=
MTP_Handle
->
DataOutEpSize
;
usbh_mtp_ptp.c:249
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_packet
+=
MTP_Handle
->
DataOutEpSize
;
usbh_mtp_ptp.c:251
USBH_PTP_Process()
if
(
MTP_Handle
->
ptp
.
data_packet
>=
PTP_USB_BULK_PAYLOAD_LEN_READ
)
usbh_mtp_ptp.c:254
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:255
USBH_PTP_Process()
MTP_Handle
->
ptp
.
iteration
++
;
usbh_mtp_ptp.c:260
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_length
=
0U
;
usbh_mtp_ptp.c:264
USBH_PTP_Process()
if
(
MTP_Handle
->
ptp
.
data_length
>
0U
)
usbh_mtp_ptp.c:267
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_ptr
,
usbh_mtp_ptp.c:275
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_RESPONSE_STATE
;
usbh_mtp_ptp.c:290
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_DATA_OUT_PHASE_STATE
;
usbh_mtp_ptp.c:303
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_ERROR
;
usbh_mtp_ptp.c:323
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_ptr
,
usbh_mtp_ptp.c:327
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_DATA_IN_PHASE_WAIT_STATE
;
usbh_mtp_ptp.c:337
USBH_PTP_Process()
if
(
MTP_Handle
->
ptp
.
data_packet_counter
++
==
0U
)
usbh_mtp_ptp.c:340
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_length
=
*
(
uint32_t
*
)
(
void
*
)
(
MTP_Handle
->
ptp
.
data_ptr
)
;
usbh_mtp_ptp.c:341
USBH_PTP_Process()
MTP_Handle
->
ptp
.
iteration
=
0U
;
usbh_mtp_ptp.c:344
USBH_PTP_Process()
if
(
(
len
>=
MTP_Handle
->
DataInEpSize
)
&&
(
MTP_Handle
->
ptp
.
data_length
>
0U
)
)
usbh_mtp_ptp.c:346
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_ptr
+=
len
;
usbh_mtp_ptp.c:347
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_length
-=
len
;
usbh_mtp_ptp.c:348
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_packet
+=
len
;
usbh_mtp_ptp.c:350
USBH_PTP_Process()
if
(
MTP_Handle
->
ptp
.
data_packet
>=
PTP_USB_BULK_PAYLOAD_LEN_READ
)
usbh_mtp_ptp.c:353
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:354
USBH_PTP_Process()
MTP_Handle
->
ptp
.
iteration
++
;
usbh_mtp_ptp.c:359
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_ptr
,
usbh_mtp_ptp.c:365
USBH_PTP_Process()
MTP_Handle
->
ptp
.
data_length
-=
len
;
usbh_mtp_ptp.c:366
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_RESPONSE_STATE
;
usbh_mtp_ptp.c:380
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_ERROR
;
usbh_mtp_ptp.c:399
USBH_PTP_Process()
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
resp_container
)
,
usbh_mtp_ptp.c:403
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_RESPONSE_WAIT_STATE
;
usbh_mtp_ptp.c:421
USBH_PTP_Process()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_SEND
;
usbh_mtp_ptp.c:425
USBH_PTP_Process()
MTP_Handle
->
ptp
.
state
=
PTP_ERROR
;
usbh_mtp_ptp.c:443
USBH_PTP_Process()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_SEND
;
usbh_mtp_ptp.c:464
USBH_PTP_SendRequest()
(
void
)
USBH_memset
(
&
(
MTP_Handle
->
ptp
.
op_container
)
,
0
,
sizeof
(
PTP_OpContainerTypedef
)
)
;
usbh_mtp_ptp.c:467
USBH_PTP_SendRequest()
MTP_Handle
->
ptp
.
op_container
.
length
=
PTP_USB_BULK_REQ_LEN
-
(
(
sizeof
(
uint32_t
)
*
(
5U
-
(
uint32_t
)
req
->
Nparam
)
)
)
;
usbh_mtp_ptp.c:468
USBH_PTP_SendRequest()
MTP_Handle
->
ptp
.
op_container
.
type
=
PTP_USB_CONTAINER_COMMAND
;
usbh_mtp_ptp.c:469
USBH_PTP_SendRequest()
MTP_Handle
->
ptp
.
op_container
.
code
=
req
->
Code
;
usbh_mtp_ptp.c:470
USBH_PTP_SendRequest()
MTP_Handle
->
ptp
.
op_container
.
trans_id
=
req
->
Transaction_ID
;
usbh_mtp_ptp.c:471
USBH_PTP_SendRequest()
MTP_Handle
->
ptp
.
op_container
.
param1
=
req
->
Param1
;
usbh_mtp_ptp.c:472
USBH_PTP_SendRequest()
MTP_Handle
->
ptp
.
op_container
.
param2
=
req
->
Param2
;
usbh_mtp_ptp.c:473
USBH_PTP_SendRequest()
MTP_Handle
->
ptp
.
op_container
.
param3
=
req
->
Param3
;
usbh_mtp_ptp.c:474
USBH_PTP_SendRequest()
MTP_Handle
->
ptp
.
op_container
.
param4
=
req
->
Param4
;
usbh_mtp_ptp.c:475
USBH_PTP_SendRequest()
MTP_Handle
->
ptp
.
op_container
.
param5
=
req
->
Param5
;
usbh_mtp_ptp.c:492
USBH_PTP_GetResponse()
resp
->
Code
=
MTP_Handle
->
ptp
.
resp_container
.
code
;
usbh_mtp_ptp.c:493
USBH_PTP_GetResponse()
resp
->
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:494
USBH_PTP_GetResponse()
resp
->
Transaction_ID
=
MTP_Handle
->
ptp
.
resp_container
.
trans_id
;
usbh_mtp_ptp.c:495
USBH_PTP_GetResponse()
resp
->
Param1
=
MTP_Handle
->
ptp
.
resp_container
.
param1
;
usbh_mtp_ptp.c:496
USBH_PTP_GetResponse()
resp
->
Param2
=
MTP_Handle
->
ptp
.
resp_container
.
param2
;
usbh_mtp_ptp.c:497
USBH_PTP_GetResponse()
resp
->
Param3
=
MTP_Handle
->
ptp
.
resp_container
.
param3
;
usbh_mtp_ptp.c:498
USBH_PTP_GetResponse()
resp
->
Param4
=
MTP_Handle
->
ptp
.
resp_container
.
param4
;
usbh_mtp_ptp.c:499
USBH_PTP_GetResponse()
resp
->
Param5
=
MTP_Handle
->
ptp
.
resp_container
.
param5
;
usbh_mtp_ptp.c:513
PTP_BufferFullCallback()
switch
(
MTP_Handle
->
ptp
.
data_container
.
code
)
usbh_mtp_ptp.c:523
PTP_BufferFullCallback()
if
(
MTP_Handle
->
ptp
.
iteration
==
0U
)
usbh_mtp_ptp.c:526
PTP_BufferFullCallback()
(
void
)
USBH_memcpy
(
MTP_Handle
->
ptp
.
object_ptr
,
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
,
usbh_mtp_ptp.c:530
PTP_BufferFullCallback()
MTP_Handle
->
ptp
.
data_ptr
=
(
MTP_Handle
->
ptp
.
object_ptr
+
PTP_USB_BULK_PAYLOAD_LEN_READ
)
;
usbh_mtp_ptp.c:536
PTP_BufferFullCallback()
if
(
MTP_Handle
->
ptp
.
iteration
==
0U
)
usbh_mtp_ptp.c:539
PTP_BufferFullCallback()
MTP_Handle
->
ptp
.
data_ptr
=
(
MTP_Handle
->
ptp
.
object_ptr
+
PTP_USB_BULK_PAYLOAD_LEN_READ
)
;
usbh_mtp_ptp.c:560
PTP_DecodeDeviceInfo()
uint8_t
*
data
=
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
;
usbh_mtp_ptp.c:568
PTP_DecodeDeviceInfo()
if
(
MTP_Handle
->
ptp
.
iteration
==
0U
)
usbh_mtp_ptp.c:621
PTP_GetStorageIDs()
uint8_t
*
data
=
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
;
usbh_mtp_ptp.c:640
PTP_GetStorageInfo()
uint8_t
*
data
=
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
;
usbh_mtp_ptp.c:664
PTP_GetObjectInfo()
uint8_t
*
data
=
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
;
usbh_mtp_ptp.c:702
PTP_GetObjectPropDesc()
uint8_t
*
data
=
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
;
usbh_mtp_ptp.c:758
PTP_GetDevicePropValue()
uint8_t
*
data
=
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
;
usbh_mtp_ptp.c:825
PTP_GetObjectPropList()
uint8_t
*
data
=
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
;
usbh_mtp_ptp.c:954
USBH_PTP_OpenSession()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:958
USBH_PTP_OpenSession()
MTP_Handle
->
ptp
.
transaction_id
=
0x00000000U
;
usbh_mtp_ptp.c:959
USBH_PTP_OpenSession()
MTP_Handle
->
ptp
.
session_id
=
session
;
usbh_mtp_ptp.c:960
USBH_PTP_OpenSession()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_NODATA
;
usbh_mtp_ptp.c:965
USBH_PTP_OpenSession()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:973
USBH_PTP_OpenSession()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:974
USBH_PTP_OpenSession()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1011
USBH_PTP_GetDevicePropDesc()
uint8_t
*
data
=
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
;
usbh_mtp_ptp.c:1013
USBH_PTP_GetDevicePropDesc()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1017
USBH_PTP_GetDevicePropDesc()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_GETDATA
;
usbh_mtp_ptp.c:1018
USBH_PTP_GetDevicePropDesc()
MTP_Handle
->
ptp
.
data_ptr
=
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
data_container
)
;
usbh_mtp_ptp.c:1019
USBH_PTP_GetDevicePropDesc()
MTP_Handle
->
ptp
.
data_length
=
0U
;
usbh_mtp_ptp.c:1020
USBH_PTP_GetDevicePropDesc()
MTP_Handle
->
ptp
.
data_packet_counter
=
0U
;
usbh_mtp_ptp.c:1021
USBH_PTP_GetDevicePropDesc()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:1025
USBH_PTP_GetDevicePropDesc()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1026
USBH_PTP_GetDevicePropDesc()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1034
USBH_PTP_GetDevicePropDesc()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1035
USBH_PTP_GetDevicePropDesc()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1078
USBH_PTP_GetDeviceInfo()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1082
USBH_PTP_GetDeviceInfo()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_GETDATA
;
usbh_mtp_ptp.c:1083
USBH_PTP_GetDeviceInfo()
MTP_Handle
->
ptp
.
data_ptr
=
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
data_container
)
;
usbh_mtp_ptp.c:1084
USBH_PTP_GetDeviceInfo()
MTP_Handle
->
ptp
.
data_length
=
0U
;
usbh_mtp_ptp.c:1085
USBH_PTP_GetDeviceInfo()
MTP_Handle
->
ptp
.
data_packet_counter
=
0U
;
usbh_mtp_ptp.c:1086
USBH_PTP_GetDeviceInfo()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:1090
USBH_PTP_GetDeviceInfo()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1091
USBH_PTP_GetDeviceInfo()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1098
USBH_PTP_GetDeviceInfo()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1099
USBH_PTP_GetDeviceInfo()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1140
USBH_PTP_GetStorageIds()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1144
USBH_PTP_GetStorageIds()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_GETDATA
;
usbh_mtp_ptp.c:1145
USBH_PTP_GetStorageIds()
MTP_Handle
->
ptp
.
data_ptr
=
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
data_container
)
;
usbh_mtp_ptp.c:1146
USBH_PTP_GetStorageIds()
MTP_Handle
->
ptp
.
data_length
=
0U
;
usbh_mtp_ptp.c:1147
USBH_PTP_GetStorageIds()
MTP_Handle
->
ptp
.
data_packet_counter
=
0U
;
usbh_mtp_ptp.c:1148
USBH_PTP_GetStorageIds()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:1152
USBH_PTP_GetStorageIds()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1153
USBH_PTP_GetStorageIds()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1160
USBH_PTP_GetStorageIds()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1161
USBH_PTP_GetStorageIds()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1204
USBH_PTP_GetStorageInfo()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1208
USBH_PTP_GetStorageInfo()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_GETDATA
;
usbh_mtp_ptp.c:1209
USBH_PTP_GetStorageInfo()
MTP_Handle
->
ptp
.
data_ptr
=
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
data_container
)
;
usbh_mtp_ptp.c:1210
USBH_PTP_GetStorageInfo()
MTP_Handle
->
ptp
.
data_length
=
0U
;
usbh_mtp_ptp.c:1211
USBH_PTP_GetStorageInfo()
MTP_Handle
->
ptp
.
data_packet_counter
=
0U
;
usbh_mtp_ptp.c:1212
USBH_PTP_GetStorageInfo()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:1216
USBH_PTP_GetStorageInfo()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1217
USBH_PTP_GetStorageInfo()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1225
USBH_PTP_GetStorageInfo()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1226
USBH_PTP_GetStorageInfo()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1271
USBH_PTP_GetNumObjects()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1275
USBH_PTP_GetNumObjects()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_NODATA
;
usbh_mtp_ptp.c:1279
USBH_PTP_GetNumObjects()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1280
USBH_PTP_GetNumObjects()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1290
USBH_PTP_GetNumObjects()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1291
USBH_PTP_GetNumObjects()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1309
USBH_PTP_GetNumObjects()
*
numobs
=
MTP_Handle
->
ptp
.
resp_container
.
param1
;
usbh_mtp_ptp.c:1336
USBH_PTP_GetObjectHandles()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1340
USBH_PTP_GetObjectHandles()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_GETDATA
;
usbh_mtp_ptp.c:1341
USBH_PTP_GetObjectHandles()
MTP_Handle
->
ptp
.
data_ptr
=
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
data_container
)
;
usbh_mtp_ptp.c:1342
USBH_PTP_GetObjectHandles()
MTP_Handle
->
ptp
.
data_length
=
0U
;
usbh_mtp_ptp.c:1343
USBH_PTP_GetObjectHandles()
MTP_Handle
->
ptp
.
data_packet_counter
=
0U
;
usbh_mtp_ptp.c:1344
USBH_PTP_GetObjectHandles()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:1348
USBH_PTP_GetObjectHandles()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1349
USBH_PTP_GetObjectHandles()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1359
USBH_PTP_GetObjectHandles()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1360
USBH_PTP_GetObjectHandles()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1379
USBH_PTP_GetObjectHandles()
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
,
usbh_mtp_ptp.c:1405
USBH_PTP_GetObjectInfo()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1409
USBH_PTP_GetObjectInfo()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_GETDATA
;
usbh_mtp_ptp.c:1410
USBH_PTP_GetObjectInfo()
MTP_Handle
->
ptp
.
data_ptr
=
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
data_container
)
;
usbh_mtp_ptp.c:1411
USBH_PTP_GetObjectInfo()
MTP_Handle
->
ptp
.
data_length
=
0U
;
usbh_mtp_ptp.c:1412
USBH_PTP_GetObjectInfo()
MTP_Handle
->
ptp
.
data_packet_counter
=
0U
;
usbh_mtp_ptp.c:1413
USBH_PTP_GetObjectInfo()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:1417
USBH_PTP_GetObjectInfo()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1418
USBH_PTP_GetObjectInfo()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1426
USBH_PTP_GetObjectInfo()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1427
USBH_PTP_GetObjectInfo()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1470
USBH_PTP_DeleteObject()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1474
USBH_PTP_DeleteObject()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_NODATA
;
usbh_mtp_ptp.c:1478
USBH_PTP_DeleteObject()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1479
USBH_PTP_DeleteObject()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1488
USBH_PTP_DeleteObject()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1489
USBH_PTP_DeleteObject()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1527
USBH_PTP_GetObject()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1532
USBH_PTP_GetObject()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_GETDATA
;
usbh_mtp_ptp.c:1533
USBH_PTP_GetObject()
MTP_Handle
->
ptp
.
data_ptr
=
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
data_container
)
;
usbh_mtp_ptp.c:1534
USBH_PTP_GetObject()
MTP_Handle
->
ptp
.
data_length
=
0U
;
usbh_mtp_ptp.c:1535
USBH_PTP_GetObject()
MTP_Handle
->
ptp
.
data_packet_counter
=
0U
;
usbh_mtp_ptp.c:1536
USBH_PTP_GetObject()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:1539
USBH_PTP_GetObject()
MTP_Handle
->
ptp
.
object_ptr
=
object
;
usbh_mtp_ptp.c:1543
USBH_PTP_GetObject()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1544
USBH_PTP_GetObject()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1553
USBH_PTP_GetObject()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1554
USBH_PTP_GetObject()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1573
USBH_PTP_GetObject()
if
(
MTP_Handle
->
ptp
.
iteration
==
0U
)
usbh_mtp_ptp.c:1576
USBH_PTP_GetObject()
(
void
)
USBH_memcpy
(
MTP_Handle
->
ptp
.
object_ptr
,
usbh_mtp_ptp.c:1577
USBH_PTP_GetObject()
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
,
usbh_mtp_ptp.c:1607
USBH_PTP_GetPartialObject()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1611
USBH_PTP_GetPartialObject()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_GETDATA
;
usbh_mtp_ptp.c:1612
USBH_PTP_GetPartialObject()
MTP_Handle
->
ptp
.
data_ptr
=
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
data_container
)
;
usbh_mtp_ptp.c:1613
USBH_PTP_GetPartialObject()
MTP_Handle
->
ptp
.
data_length
=
0U
;
usbh_mtp_ptp.c:1614
USBH_PTP_GetPartialObject()
MTP_Handle
->
ptp
.
data_packet_counter
=
0U
;
usbh_mtp_ptp.c:1615
USBH_PTP_GetPartialObject()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:1618
USBH_PTP_GetPartialObject()
MTP_Handle
->
ptp
.
object_ptr
=
object
;
usbh_mtp_ptp.c:1622
USBH_PTP_GetPartialObject()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1623
USBH_PTP_GetPartialObject()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1633
USBH_PTP_GetPartialObject()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1634
USBH_PTP_GetPartialObject()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1652
USBH_PTP_GetPartialObject()
*
len
=
MTP_Handle
->
ptp
.
resp_container
.
param1
;
usbh_mtp_ptp.c:1654
USBH_PTP_GetPartialObject()
if
(
MTP_Handle
->
ptp
.
iteration
==
0U
)
usbh_mtp_ptp.c:1657
USBH_PTP_GetPartialObject()
(
void
)
USBH_memcpy
(
MTP_Handle
->
ptp
.
object_ptr
,
usbh_mtp_ptp.c:1658
USBH_PTP_GetPartialObject()
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
,
*
len
)
;
usbh_mtp_ptp.c:1685
USBH_PTP_GetObjectPropsSupported()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1689
USBH_PTP_GetObjectPropsSupported()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_GETDATA
;
usbh_mtp_ptp.c:1690
USBH_PTP_GetObjectPropsSupported()
MTP_Handle
->
ptp
.
data_ptr
=
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
data_container
)
;
usbh_mtp_ptp.c:1691
USBH_PTP_GetObjectPropsSupported()
MTP_Handle
->
ptp
.
data_length
=
0U
;
usbh_mtp_ptp.c:1692
USBH_PTP_GetObjectPropsSupported()
MTP_Handle
->
ptp
.
data_packet_counter
=
0U
;
usbh_mtp_ptp.c:1693
USBH_PTP_GetObjectPropsSupported()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:1697
USBH_PTP_GetObjectPropsSupported()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1698
USBH_PTP_GetObjectPropsSupported()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1706
USBH_PTP_GetObjectPropsSupported()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1707
USBH_PTP_GetObjectPropsSupported()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1725
USBH_PTP_GetObjectPropsSupported()
*
propnum
=
PTP_GetArray16
(
props
,
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
,
0U
)
;
usbh_mtp_ptp.c:1751
USBH_PTP_GetObjectPropDesc()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1756
USBH_PTP_GetObjectPropDesc()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_GETDATA
;
usbh_mtp_ptp.c:1757
USBH_PTP_GetObjectPropDesc()
MTP_Handle
->
ptp
.
data_ptr
=
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
data_container
)
;
usbh_mtp_ptp.c:1758
USBH_PTP_GetObjectPropDesc()
MTP_Handle
->
ptp
.
data_length
=
0U
;
usbh_mtp_ptp.c:1759
USBH_PTP_GetObjectPropDesc()
MTP_Handle
->
ptp
.
data_packet_counter
=
0U
;
usbh_mtp_ptp.c:1760
USBH_PTP_GetObjectPropDesc()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:1764
USBH_PTP_GetObjectPropDesc()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1765
USBH_PTP_GetObjectPropDesc()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1774
USBH_PTP_GetObjectPropDesc()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1775
USBH_PTP_GetObjectPropDesc()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1793
USBH_PTP_GetObjectPropDesc()
PTP_GetObjectPropDesc
(
phost
,
opd
,
MTP_Handle
->
ptp
.
data_length
)
;
usbh_mtp_ptp.c:1822
USBH_PTP_GetObjectPropList()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1827
USBH_PTP_GetObjectPropList()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_GETDATA
;
usbh_mtp_ptp.c:1828
USBH_PTP_GetObjectPropList()
MTP_Handle
->
ptp
.
data_ptr
=
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
data_container
)
;
usbh_mtp_ptp.c:1829
USBH_PTP_GetObjectPropList()
MTP_Handle
->
ptp
.
data_length
=
0U
;
usbh_mtp_ptp.c:1830
USBH_PTP_GetObjectPropList()
MTP_Handle
->
ptp
.
data_packet_counter
=
0U
;
usbh_mtp_ptp.c:1831
USBH_PTP_GetObjectPropList()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:1834
USBH_PTP_GetObjectPropList()
(
void
)
USBH_memcpy
(
MTP_Handle
->
ptp
.
data_container
.
payload
.
data
,
usbh_mtp_ptp.c:1835
USBH_PTP_GetObjectPropList()
MTP_Handle
->
ptp
.
object_ptr
,
PTP_USB_BULK_PAYLOAD_LEN_READ
)
;
usbh_mtp_ptp.c:1839
USBH_PTP_GetObjectPropList()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1840
USBH_PTP_GetObjectPropList()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1852
USBH_PTP_GetObjectPropList()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1853
USBH_PTP_GetObjectPropList()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
usbh_mtp_ptp.c:1871
USBH_PTP_GetObjectPropList()
(
void
)
PTP_GetObjectPropList
(
phost
,
pprops
,
MTP_Handle
->
ptp
.
data_length
)
;
usbh_mtp_ptp.c:1900
USBH_PTP_SendObject()
switch
(
MTP_Handle
->
ptp
.
req_state
)
usbh_mtp_ptp.c:1904
USBH_PTP_SendObject()
MTP_Handle
->
ptp
.
flags
=
PTP_DP_SENDDATA
;
usbh_mtp_ptp.c:1905
USBH_PTP_SendObject()
MTP_Handle
->
ptp
.
data_ptr
=
(
uint8_t
*
)
(
void
*
)
&
(
MTP_Handle
->
ptp
.
data_container
)
;
usbh_mtp_ptp.c:1906
USBH_PTP_SendObject()
MTP_Handle
->
ptp
.
data_packet_counter
=
0U
;
usbh_mtp_ptp.c:1907
USBH_PTP_SendObject()
MTP_Handle
->
ptp
.
data_packet
=
0U
;
usbh_mtp_ptp.c:1908
USBH_PTP_SendObject()
MTP_Handle
->
ptp
.
iteration
=
0U
;
usbh_mtp_ptp.c:1911
USBH_PTP_SendObject()
MTP_Handle
->
ptp
.
object_ptr
=
object
;
usbh_mtp_ptp.c:1912
USBH_PTP_SendObject()
MTP_Handle
->
ptp
.
data_length
=
size
;
usbh_mtp_ptp.c:1916
USBH_PTP_SendObject()
ptp_container
.
SessionID
=
MTP_Handle
->
ptp
.
session_id
;
usbh_mtp_ptp.c:1917
USBH_PTP_SendObject()
ptp_container
.
Transaction_ID
=
MTP_Handle
->
ptp
.
transaction_id
++
;
usbh_mtp_ptp.c:1924
USBH_PTP_SendObject()
MTP_Handle
->
ptp
.
state
=
PTP_OP_REQUEST_STATE
;
usbh_mtp_ptp.c:1925
USBH_PTP_SendObject()
MTP_Handle
->
ptp
.
req_state
=
PTP_REQ_WAIT
;
Data Use
Functions reading
_MTP_Process::ptp
_MTP_Process::ptp
USBH_PTP_Init()
USBH_PTP_Process()
USBH_PTP_SendRequest()
USBH_PTP_GetResponse()
PTP_BufferFullCallback()
PTP_DecodeDeviceInfo()
PTP_GetStorageIDs()
PTP_GetStorageInfo()
PTP_GetObjectInfo()
PTP_GetObjectPropDesc()
PTP_GetDevicePropValue()
PTP_GetObjectPropList()
USBH_PTP_OpenSession()
USBH_PTP_GetDevicePropDesc()
USBH_PTP_GetDeviceInfo()
USBH_PTP_GetStorageIds()
USBH_PTP_GetStorageInfo()
USBH_PTP_GetNumObjects()
USBH_PTP_GetObjectHandles()
USBH_PTP_GetObjectInfo()
USBH_PTP_DeleteObject()
USBH_PTP_GetObject()
USBH_PTP_GetPartialObject()
USBH_PTP_GetObjectPropsSupported()
USBH_PTP_GetObjectPropDesc()
USBH_PTP_GetObjectPropList()
USBH_PTP_SendObject()
all items filtered out
Type of
_MTP_Process::ptp
_MTP_Process::ptp
PTP_HandleTypeDef
all items filtered out