| /** | |
| * @file : gsw_oem_rw_interface.h | |
| * @brief : sdk interface | |
| * @date : | |
| * @author : | |
| * @version : v1.0 | |
| * @copyright | |
| */ | |
| #ifndef GSW_OEM_RW_INTERFACE_H | |
| #define GSW_OEM_RW_INTERFACE_H | |
| #include "gsw_hal_errcode.h" | |
| /** | |
| * @brief SDK interface to read data from spec page of flash only GM552A | |
| * @param [in] read data | |
| * @param [in] size, it must be less than (64 * 4096 - 8)Byte | |
| * @retval 0: success | |
| * @retval other: fail | |
| */ | |
| int gsw_oem_read_data(void *data, unsigned int *len); | |
| /** | |
| * @brief SDK interface to write data to spec page of flash only GM552A | |
| * @param [in] write data | |
| * @param [in] size, it must be less than (64 * 4096 - 8)Byte | |
| * @retval 0: success | |
| * @retval other: fail | |
| */ | |
| int gsw_oem_write_data(void *data, unsigned int len); | |
| /** | |
| * @brief Read data from spec block of flash | |
| * @param [in] unsigned int:block_id value range[1-5] | |
| * @param [out] void * | |
| * @param [out] unsigned int *:len, it must be less than (256 * 1024 - 8)bytes | |
| * @retval GSW_HAL_SUCCESS\GSW_HAL_NORMAL_FAIL | |
| */ | |
| int gsw_oem_read_data_ext(unsigned int block_id, void *data, unsigned int *len); | |
| /** | |
| * @brief Write data to spec block of flash | |
| * @param [in] unsigned int:block_id, value range[1-5] | |
| * @param [in] void * | |
| * @param [in] unsigned int:len, it must be less than (256 * 1024 - 8)bytes | |
| * @retval 0: success | |
| * @retval GSW_HAL_SUCCESS\GSW_HAL_FAIL | |
| */ | |
| int gsw_oem_write_data_ext(unsigned int block_id, void *data, unsigned int len); | |
| #endif /*GSW_RTC_INTERFACE_H*/ |