hv_drv_Eeprom.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * @file hv_drv_Eeprom.h
  3. * @brief Header file of misc module.
  4. *
  5. * @verbatim
  6. * ==============================================================================
  7. * ##### How to use #####
  8. * ==============================================================================
  9. * (+) Use ()
  10. *
  11. * @endverbatim
  12. * @author HiView SoC Software Team
  13. * @version 1.0.0
  14. * @date 2023-05-08
  15. */
  16. #ifndef _HV_DRV_E2P_H
  17. #define _HV_DRV_E2P_H
  18. /** @defgroup DRV_E2P DRV_E2P
  19. * drv eeprom functions
  20. * @{
  21. */
  22. /** Transmit an amount of data to Eeprom
  23. * @param ucBus i2c bus
  24. * @param usWtAddr address to write data
  25. * @param pucWtData pointer to write data
  26. * @param usWtDataSize size to write data.
  27. * @retval Status
  28. */
  29. Status Hv_Drv_Eeprom_Write(UCHAR8 ucBus, USHORT16 usWtAddr, UCHAR8 *pucWtData, USHORT16 usWtDataSize);
  30. /** receive an amount of data from eeprom
  31. * @param ucBus i2c bus
  32. * @param usRdAddr address to write data
  33. * @param pucRdData pointer to write data
  34. * @param usRdDataSize size to read data.
  35. * @retval Status
  36. */
  37. Status Hv_Drv_Eeprom_Read(UCHAR8 ucBus, USHORT16 usRdAddr, UCHAR8 *pucRdData, USHORT16 usRdDataSize);
  38. /** init i2c for eeprom
  39. * @retval Status
  40. */
  41. Status Hv_Drv_Eeprom_Init(void);
  42. /** @} */
  43. #endif