MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / cistpl_funce_func0

Function cistpl_funce_func0

components/drivers/sdio/dev_sdio.c:479–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477}
478
479static rt_int32_t cistpl_funce_func0(struct rt_mmcsd_card *card,
480 const rt_uint8_t *buf,
481 rt_uint32_t size)
482{
483 if (size < 0x04 || buf[0] != 0)
484 return -RT_ERROR;
485
486 /* TPLFE_FN0_BLK_SIZE */
487 card->cis.func0_blk_size = buf[1] | (buf[2] << 8);
488
489 /* TPLFE_MAX_TRAN_SPEED */
490 card->cis.max_tran_speed = speed_value[(buf[3] >> 3) & 15] *
491 speed_unit[buf[3] & 7];
492
493 return 0;
494}
495
496static rt_int32_t cistpl_funce_func(struct rt_sdio_function *func,
497 const rt_uint8_t *buf,

Callers 1

sdio_read_cisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected