KETCube
Macros | Enumerations | Functions
ketCube_radio.h File Reference

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

#include "ketCube_cfg.h"
#include "ketCube_gpio.h"

Go to the source code of this file.

Macros

#define KETCUBE_RADIO_NAME   "radio_drv"
 Radio driver name. More...
 

Enumerations

enum  ketCube_radio_pin_t {
  RADIO_RESET_PIN = KETCUBE_GPIO_PIN_0, RADIO_MOSI_PIN = KETCUBE_GPIO_PIN_7, RADIO_MISO_PIN = KETCUBE_GPIO_PIN_6, RADIO_SCLK_PIN = KETCUBE_GPIO_PIN_3,
  RADIO_NSS_PIN = KETCUBE_GPIO_PIN_15, RADIO_DIO_0_PIN = KETCUBE_GPIO_PIN_4, RADIO_DIO_1_PIN = KETCUBE_GPIO_PIN_1, RADIO_DIO_2_PIN = KETCUBE_GPIO_PIN_0,
  RADIO_DIO_3_PIN = KETCUBE_GPIO_PIN_13, RADIO_TCXO_VCC_PIN = KETCUBE_GPIO_PIN_12, RADIO_ANT_SWITCH_PIN_RX = KETCUBE_GPIO_PIN_1, RADIO_ANT_SWITCH_PIN_TX_BOOST = KETCUBE_GPIO_PIN_1,
  RADIO_ANT_SWITCH_PIN_TX_RFO = KETCUBE_GPIO_PIN_2
}
 
enum  ketCube_radio_port_t {
  RADIO_RESET_PORT = KETCUBE_GPIO_PC, RADIO_MOSI_PORT = KETCUBE_GPIO_PA, RADIO_MISO_PORT = KETCUBE_GPIO_PA, RADIO_SCLK_PORT = KETCUBE_GPIO_PB,
  RADIO_NSS_PORT = KETCUBE_GPIO_PA, RADIO_DIO_0_PORT = KETCUBE_GPIO_PB, RADIO_DIO_1_PORT = KETCUBE_GPIO_PB, RADIO_DIO_2_PORT = KETCUBE_GPIO_PB,
  RADIO_DIO_3_PORT = KETCUBE_GPIO_PC, RADIO_TCXO_VCC_PORT = KETCUBE_GPIO_PA, RADIO_ANT_SWITCH_PORT_RX = KETCUBE_GPIO_PA, RADIO_ANT_SWITCH_PORT_TX_BOOST = KETCUBE_GPIO_PC,
  RADIO_ANT_SWITCH_PORT_TX_RFO = KETCUBE_GPIO_PC
}
 

Functions

ketCube_cfg_DrvError_t ketCube_Radio_Init (void)
 Initializes the Radio hardware. More...
 
ketCube_cfg_DrvError_t ketCube_Radio_DeInit (void)
 Deinitializes the Radio hardware. More...
 
ketCube_cfg_DrvError_t ketCube_Radio_InitDriver (void)
 Set-UP Radio before sleep enter. More...
 
ketCube_cfg_DrvError_t ketCube_Radio_SleepEnter (void)
 Set-UP Radio befere sleep enter. More...
 
ketCube_cfg_DrvError_t ketCube_Radio_SleepExit (void)
 Set-UP radio after sleep exit. More...
 

Detailed Description

This file contains definitions for the ketCube Radio driver.

Author
Jan Belohoubek
Version
alpha
Date
2019-12-09
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.