KETCube
Macros | Functions
ketCube_spi.h File Reference

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

#include "ketCube_cfg.h"

Go to the source code of this file.

Macros

#define KETCUBE_SPI_NAME   "spi_drv"
 Radio driver name. More...
 

Functions

ketCube_cfg_DrvError_t ketCube_SPI_Init (void)
 Initializes the SPI object and MCU peripheral. More...
 
ketCube_cfg_DrvError_t ketCube_SPI_DeInit (void)
 De-initializes the SPI object and MCU peripheral. More...
 
uint16_t ketCube_SPI_InOut (uint16_t txData)
 Sends outData and receives inData. More...
 
ketCube_cfg_DrvError_t ketCube_SPI_SleepEnter (void)
 Set-UP SPI befere sleep enter. More...
 
ketCube_cfg_DrvError_t ketCube_SPI_SleepExit (void)
 Set-UP SPI after sleep exit. More...
 

Detailed Description

This file contains definitions for the ketCube SPI driver.

Author
Jan Belohoubek
Version
alpha
Date
2019-12-09
Note
This code is based on Semtech and STM SPI driver implementation. See the original file licenses in LICENSE_SEMTECH and LICENSE_STM respectively.
Attention

© Copyright (c) 2019 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.