/******************************************************************************* * DISCLAIMER * This software is supplied by Renesas Electronics Corporation and is only * intended for use with Renesas products. No other uses are authorized. This * software is owned by Renesas Electronics Corporation and is protected under * all applicable laws, including copyright laws. * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. * Renesas reserves the right, without notice, to make changes to this software * and to discontinue the availability of this software. By using this software, * you agree to the additional terms and conditions found by accessing the * following link: * http://www.renesas.com/disclaimer * Copyright 2018-2022 Renesas Electronics Corporation All rights reserved. *******************************************************************************/ /******************************************************************************* * DESCRIPTION : emmc def header ******************************************************************************/ /****************************************************************************** * @file emmc_def.h * - Version : 0.02 * @brief * . *****************************************************************************/ /****************************************************************************** * History : DD.MM.YYYY Version Description * : 02.02.2022 0.01 First Release * : 31.10.2022 0.02 License notation change. *****************************************************************************/ #ifndef EMMC_DEF_H__ #define EMMC_DEF_H__ /* ************************ HEADER (INCLUDE) SECTION *********************** */ #include "emmc_std.h" /* ***************** MACROS, CONSTANTS, COMPILATION FLAGS ****************** */ /* ********************** STRUCTURES, TYPE DEFINITIONS ********************* */ /* ********************** DECLARATION OF EXTERNAL DATA ********************* */ extern st_mmc_base mmc_drv_obj; /* ************************** FUNCTION PROTOTYPES ************************** */ /* eMMC driver API */ EMMC_ERROR_CODE emmc_init(void); void import_mmc_drv_obj(void); void export_mmc_drv_obj(void); EMMC_ERROR_CODE emmc_terminate(void); EMMC_ERROR_CODE emmc_memcard_power(uint32_t mode); EMMC_ERROR_CODE emmc_mount(void); EMMC_ERROR_CODE emmc_set_request_mmc_clock(const uint32_t *freq); EMMC_ERROR_CODE emmc_send_idle_cmd (uint32_t arg); EMMC_ERROR_CODE emmc_select_partition(EMMC_PARTITION_ID id); EMMC_ERROR_CODE emmc_read_sector(uint32_t *buff_address_virtual, uint32_t sector_number, uint32_t count, uint32_t feature_flags); uint32_t emmc_bit_field (const uint8_t *data, uint32_t top, uint32_t bottom); /* interrupt service */ uint32_t emmc_interrupt(void); /* send command API */ EMMC_ERROR_CODE emmc_exec_cmd (uint32_t error_mask, uint32_t *response); void emmc_make_nontrans_cmd (HAL_MEMCARD_COMMAND cmd, uint32_t arg); void emmc_make_trans_cmd (HAL_MEMCARD_COMMAND cmd, uint32_t arg, uint32_t *buff_address_virtual, uint32_t len, HAL_MEMCARD_OPERATION dir, HAL_MEMCARD_DATA_TRANSFER_MODE transfer_mode); EMMC_ERROR_CODE emmc_set_ext_csd(uint32_t arg); /* ********************************* CODE ********************************** */ #endif /* #define EMMC_DEF_H__ */ /* ******************************** END ************************************ */