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

Function sdio_match_card

components/drivers/sdio/dev_sdio.c:1303–1321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1301}
1302
1303rt_inline rt_int32_t sdio_match_card(struct rt_mmcsd_card *card,
1304 const struct rt_sdio_device_id *id)
1305{
1306 rt_uint8_t num = 1;
1307
1308 if ((id->manufacturer != SDIO_ANY_MAN_ID) &&
1309 (id->manufacturer != card->cis.manufacturer))
1310 return 0;
1311
1312 while (num <= card->sdio_function_num)
1313 {
1314 if ((id->product != SDIO_ANY_PROD_ID) &&
1315 (id->product == card->sdio_function[num]->product))
1316 return 1;
1317 num++;
1318 }
1319
1320 return 0;
1321}
1322
1323
1324static struct rt_mmcsd_card *sdio_match_driver(struct rt_sdio_device_id *id)

Callers 2

sdio_register_cardFunction · 0.85
sdio_match_driverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected