blob: 51aadcd8ae5a6e3db30e4dc4a11162d9fc9a5a9a [file] [log] [blame]
/**
* @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
* @param [out] void *
* @param [out] unsigned int *
* @retval GSW_HAL_SUCCESS\GSW_HAL_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
* @param [in] void *
* @param [in] unsigned int
* @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*/