KETCube
|
This file contains definitions for the ketCube I2C driver. More...
#include "ketCube_cfg.h"
Go to the source code of this file.
Macros | |
#define | KETCUBE_I2C_NAME "i2c_drv" |
I2C driver name. More... | |
#define | KETCUBE_I2C_ADDRESS (uint8_t)0x33 |
KETCube I2C address (KETCube is normally master and acts on a single-master I2C bus, thus this address has almost no meaning) More... | |
#define | KETCUBE_I2C_HANDLE I2C1 |
#define | KETCUBE_I2C_TIMEOUT 0x5000 |
The value of the maximal timeout for BUS waiting loops. More... | |
Enumerations | |
enum | ketCube_I2C_SPEED_t { KETCUBE_I2C_SPEED_100KHZ = 0x10A13E56, KETCUBE_I2C_SPEED_400KHZ = 0x00B1112E } |
I2C Speed selection. More... | |
Functions | |
ketCube_cfg_DrvError_t | ketCube_I2C_Init (void) |
ketCube_cfg_DrvError_t | ketCube_I2C_UnInit (void) |
ketCube_cfg_DrvError_t | ketCube_I2C_ReadData (uint8_t Addr, uint8_t Reg, uint8_t *pBuffer, uint16_t Size) |
ketCube_cfg_DrvError_t | ketCube_I2C_WriteData (uint8_t Addr, uint8_t Reg, uint8_t *pBuffer, uint16_t Size) |
ketCube_cfg_DrvError_t | ketCube_I2C_WriteRawData (uint8_t Addr, uint8_t *pBuffer, uint16_t Size) |
ketCube_cfg_DrvError_t | ketCube_I2C_ReadRawData (uint8_t Addr, uint8_t *pBuffer, uint16_t Size) |
ketCube_cfg_DrvError_t | ketCube_I2C_TexasWriteReg (uint8_t devAddr, uint8_t regAddr, uint16_t *data) |
ketCube_cfg_DrvError_t | ketCube_I2C_TexasReadReg (uint8_t devAddr, uint8_t RegAddr, uint16_t *data) |
ketCube_cfg_DrvError_t | ketCube_I2C_STMWriteSingle (uint8_t devAddr, uint8_t regAddr, uint8_t *data, uint8_t try) |
ketCube_cfg_DrvError_t | ketCube_I2C_STMReadSingle (uint8_t devAddr, uint8_t RegAddr, uint8_t *data, uint8_t try) |
ketCube_cfg_DrvError_t | ketCube_I2C_STMReadBlock (uint8_t devAddr, uint8_t regAddr, uint8_t *data, uint8_t len, uint8_t try) |
ketCube_cfg_DrvError_t | ketCube_I2C_AnalogWriteReg (uint8_t devAddr, uint8_t regAddr, uint8_t data) |
This file contains definitions for the ketCube I2C driver.
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.
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.