![]() |
MAX32665 SDK Documentation
0.2
Software Development Kit Overview and API Documentation
|
Modules | |
| SDHC_Registers | |
| Registers, Bit Masks and Bit Positions for the SDHC Peripheral Module. | |
| Sdhc_async | |
| Callback function type used in asynchronous SDHC communications requests. | |
Data Structures | |
| struct | sdhc_cfg_t |
| struct | sdhc_cmd_cfg_t |
Macros | |
| #define | SDHC_Bus_Voltage_1_8 5 |
| #define | SDHC_Bus_Voltage_3_0 6 |
| #define | SDHC_Bus_Voltage_3_3 7 |
| #define | SDHC_DIRECTION_CFG 0 |
| #define | SDHC_DIRECTION_READ 1 |
| #define | SDHC_DIRECTION_WRITE 2 |
Typedefs | |
| typedef void(* | sdhc_callback_fn) (int error_code) |
Functions | |
| int | SDHC_Init (const sdhc_cfg_t *cfg, const sys_cfg_sdhc_t *sys_cfg) |
| Initialize and enable SDHC module. More... | |
| int | SDHC_Shutdown (void) |
| Shutdown SDHC module. More... | |
| void | SDHC_PowerUp (void) |
| Enable SDHC Bus Power. | |
| void | SDHC_PowerDown (void) |
| Disable SDHC Bus Power. | |
| void | SDHC_Set_Clock_Config (unsigned int clk_div) |
| Set clock divider. More... | |
| unsigned int | SDHC_Get_Clock_Config (void) |
| Get clock divider. More... | |
| int | SDHC_SendCommand (sdhc_cmd_cfg_t *sd_cmd_cfg) |
| Send Command, blocking. More... | |
| int | SDHC_SendCommandAsync (sdhc_cmd_cfg_t *sd_cmd_cfg) |
| Send SDHC command Async. More... | |
| void | SDHC_Handler (void) |
| int | SDHC_Card_Inserted (void) |
| See if card is inserted. More... | |
| void | SDHC_ClearFlags (uint32_t mask) |
| Clear interrupt flags. More... | |
| unsigned | SDHC_GetFlags (void) |
| Get interrupt flags. More... | |
| void | SDHC_Reset (void) |
| Resets SDHC back to default settings. More... | |
| void | SDHC_Reset_CMD_DAT (void) |
| Abort any command or data transaction in progress on controller. More... | |
| int | SDHC_Card_Busy (void) |
| Check if Card is busy. More... | |
| unsigned int | SDHC_Get_Host_Cn_1 (void) |
| Retrieve host control 1 register. More... | |
| uint32_t | SDHC_Get_Response32 (void) |
| Read a 32-bit command response. More... | |
| uint32_t | SDHC_Get_Response32_Auto (void) |
| Read a 32-bit command response for Auto commands. More... | |
| void | SDHC_Get_Response128 (unsigned char *response) |
| Read a 128-bit command response. More... | |
| int SDHC_Init | ( | const sdhc_cfg_t * | cfg, |
| const sys_cfg_sdhc_t * | sys_cfg | ||
| ) |
| cfg | Pointer to SDHC configuration. |
| sys_cfg | Pointer to system configuration object |
| int SDHC_Shutdown | ( | void | ) |
| void SDHC_Set_Clock_Config | ( | unsigned int | clk_div | ) |
| clk_div | Divider setting s |
| unsigned int SDHC_Get_Clock_Config | ( | void | ) |
| int SDHC_SendCommand | ( | sdhc_cmd_cfg_t * | sd_cmd_cfg | ) |
| sd_cmd_cfg | The sd command configuration |
| int SDHC_SendCommandAsync | ( | sdhc_cmd_cfg_t * | sd_cmd_cfg | ) |
| sd_cmd_cfg | The sd command configuration |
| int SDHC_Card_Inserted | ( | void | ) |
| void SDHC_ClearFlags | ( | uint32_t | mask | ) |
| mask | Mask of the SDHC interrupts to clear, see SDHC_INTFL Register. |
| unsigned SDHC_GetFlags | ( | void | ) |
| void SDHC_Reset | ( | void | ) |
| void SDHC_Reset_CMD_DAT | ( | void | ) |
| int SDHC_Card_Busy | ( | void | ) |
| unsigned int SDHC_Get_Host_Cn_1 | ( | void | ) |
| uint32_t SDHC_Get_Response32 | ( | void | ) |
This function may be used to read response types R1, R1a, R3, R4, R5, R5b, and R6
| uint32_t SDHC_Get_Response32_Auto | ( | void | ) |
This function may be used to read response types R1b and R1 after an Auto CMD12 or Auto CMD23
| void SDHC_Get_Response128 | ( | unsigned char * | response | ) |
| response | Pointer to storage for response (16 bytes) |
This function may be used to read response type R2 (CID or CSD)