MT2523 API Reference  LinkIt SDK v4
Typedef
HAL » SD

Overview

Typedefs

typedef void(* hal_sd_callback_t) (hal_sd_card_event_t event, void *user_data)
 This defines the callback function prototype. More...
 

Typedef Documentation

typedef void(* hal_sd_callback_t) (hal_sd_card_event_t event, void *user_data)

This defines the callback function prototype.

Register a callback function to handle a card detection. This function is called after the card is inserted or plugged out. For more details about the callback, please refer to hal_sd_register_card_detection_callback().

Parameters
[in]eventis the event of the card detection. This parameter specifies whether the SD card is inserted or not. For more details about the event type, please refer to hal_sd_card_event_t.
[in]user_datais the user defined parameter obtained from hal_sd_register_card_detection_callback() function.