KETCube
Macros | Enumerations | Functions
ketCube_eeprom.h File Reference

This file contains definitions for the ketCube EEPROM driver. More...

#include "stdint.h"

Go to the source code of this file.

Macros

#define KETCUBE_EEPROM_NAME   "eeprom_drv"
 EEPROM driver name. More...
 
#define KETCUBE_EEPROM_BASE_ADDR   ((uint32_t)0x08080000) /* Data EEPROM base address */
 
#define KETCUBE_EEPROM_END_ADDR   ((uint32_t)0x080807FF) /* Data EEPROM end address */
 
#define KETCUBE_EEPROM_TIMEOUT   0x1000 /*<! Value of Timeout for EEPROM operations */
 

Enumerations

enum  ketCube_EEPROM_Error_t { KETCUBE_EEPROM_OK = 0, KETCUBE_EEPROM_ERROR = 1, ketCube_EEPROM_Error_tIMEOUT = 2, KETCUBE_EEPROM_ERROR_MEMOVER = 3 }
 Error code type. More...
 

Functions

ketCube_EEPROM_Error_t ketCube_EEPROM_ReadBuffer (uint32_t addr, uint8_t *data, uint8_t len)
 Read Buffer to the EEPROM. More...
 
ketCube_EEPROM_Error_t ketCube_EEPROM_WriteBuffer (uint32_t addr, uint8_t *data, uint8_t len)
 Write Buffer to the EEPROM. More...
 
ketCube_EEPROM_Error_t ketCube_EEPROM_Erase (uint32_t addr, uint8_t len)
 Erase block of the EEPROM memory. More...
 

Detailed Description

This file contains definitions for the ketCube EEPROM driver.

Author
Jan Belohoubek
Version
0.1
Date
2018-01-05
Attention

© Copyright (c) 2018 University of West Bohemia in Pilsen All rights reserved.

Developed by: The SmartCampus Team Department of Technologies and Measurement www.smartcampus.cz | www.zcu.cz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.

Macro Definition Documentation

◆ KETCUBE_EEPROM_NAME

#define KETCUBE_EEPROM_NAME   "eeprom_drv"

EEPROM driver name.