mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-29 01:20:19 +00:00
add tud_msc_ready()
This commit is contained in:
parent
c5a41ac9d8
commit
2729937e87
@ -110,6 +110,11 @@ static inline uint16_t rdwr10_get_blockcount(uint8_t const command[])
|
|||||||
return __be2n_16(block_count);
|
return __be2n_16(block_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool tud_msc_ready(void)
|
||||||
|
{
|
||||||
|
return ( _mscd_itf.ep_in != 0 ) && ( _mscd_itf.ep_out != 0 ) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// USBD-CLASS API
|
// USBD-CLASS API
|
||||||
|
@ -94,6 +94,10 @@ VERIFY_STATIC(CFG_TUD_MSC_BUFSIZE < UINT16_MAX, "Size is not correct");
|
|||||||
* \defgroup MSC_Device Device
|
* \defgroup MSC_Device Device
|
||||||
* @{ */
|
* @{ */
|
||||||
|
|
||||||
|
|
||||||
|
// Check if MSC interface is ready to use
|
||||||
|
bool tud_msc_ready(void);
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// APPLICATION CALLBACK API (WEAK is optional)
|
// APPLICATION CALLBACK API (WEAK is optional)
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user