50 #if defined(_EZR32_HAPPY_FAMILY)
52 #elif (defined(_EZR32_LEOPARD_FAMILY) || defined(_EZR32_WONDER_FAMILY))
68 #if defined(_EZR32_HAPPY_FAMILY)
72 #if !defined(EZRADIODRV_SPI_4WIRE_MODE)
81 #if ( !defined(_EZR32_HAPPY_FAMILY) && !defined(EZRADIODRV_DISABLE_PTI) )
102 PRS->ROUTE = (PRS_ROUTE_CH0PEN | PRS_ROUTE_CH1PEN);
107 #endif //#if !defined(_EZR32_HAPPY_FAMILY)
109 #if defined(EZRADIODRV_DISABLE_PTI) && defined(EZRADIODRV_COMM_USE_GPIO1_FOR_CTS)
114 if (NULL != ezradioIrqCallback)
128 ezradioSpiInitData.
bitRate = 8E6;
130 #if !defined(EZRADIODRV_SPI_4WIRE_MODE)
134 SPIDRV_Init( ezradioSpiHandlePtr, &ezradioSpiInitData );
180 #if defined(EZRADIODRV_DISABLE_PTI) && defined(EZRADIODRV_COMM_USE_GPIO1_FOR_CTS)
186 uint8_t ezradio_hal_Gpio1Level(
void)
void ezradio_hal_SetNsel(void)
Ecode_t SPIDRV_MTransmitB(SPIDRV_Handle_t handle, const void *buffer, int count)
Start a SPI master blocking transmit transfer.
void ezradio_hal_SpiInit(void)
void ezradio_hal_AssertShutdown(void)
Ecode_t SPIDRV_MTransferB(SPIDRV_Handle_t handle, const void *txBuffer, void *rxBuffer, int count)
Start a SPI master blocking transfer.
void ezradio_hal_GpioInit(GPIOINT_IrqCallbackPtr_t ezradioIrqCallback, bool enablePTI)
void GPIOINT_CallbackRegister(uint8_t pin, GPIOINT_IrqCallbackPtr_t callbackPtr)
Registers user callback for given pin number.
#define PRS_CH_CTRL_SOURCESEL_GPIOH
uint32_t bitRate
SPI bitrate.
This file contains EZRadio HAL.
void ezradio_hal_SpiWriteReadData(uint8_t byteCount, uint8_t *txData, uint8_t *rxData)
void ezradio_hal_SpiWriteData(uint8_t byteCount, uint8_t *pData)
EZRADIODRV configuration file.
void GPIO_PinModeSet(GPIO_Port_TypeDef port, unsigned int pin, GPIO_Mode_TypeDef mode, unsigned int out)
Set the mode for a GPIO pin.
#define SPIDRV_MASTER_USARTRF0
Configuration data for SPI master using USARTRF0.
General Purpose IO (GPIO) peripheral API.
void ezradio_hal_SpiWriteByte(uint8_t byteToWrite)
__STATIC_INLINE void GPIO_PinOutSet(GPIO_Port_TypeDef port, unsigned int pin)
Set a single pin in GPIO data out register to 1.
void ezradio_hal_SpiReadData(uint8_t byteCount, uint8_t *pData)
__STATIC_INLINE void GPIO_InputSenseSet(uint32_t val, uint32_t mask)
Enable/disable input sensing.
void CMU_ClockEnable(CMU_Clock_TypeDef clock, bool enable)
Enable/disable a clock.
void ezradio_hal_SpiReadByte(uint8_t *readByte)
__STATIC_INLINE void GPIO_IntConfig(GPIO_Port_TypeDef port, unsigned int pin, bool risingEdge, bool fallingEdge, bool enable)
Configure GPIO interrupt.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN15
CS controlled by application.
void(* GPIOINT_IrqCallbackPtr_t)(uint8_t pin)
GPIO interrupt callback function pointer.
void ezradio_hal_ClearNsel(void)
Ecode_t SPIDRV_Init(SPIDRV_Handle_t handle, SPIDRV_Init_t *initData)
Initialize a SPI driver instance.
uint8_t ezradio_hal_NirqLevel(void)
__STATIC_INLINE void GPIO_PinOutClear(GPIO_Port_TypeDef port, unsigned int pin)
Set a single pin in GPIO data out port register to 0.
#define SPIDRV_MASTER_USART1
Configuration data for SPI master using USART1.
__STATIC_INLINE unsigned int GPIO_PinInGet(GPIO_Port_TypeDef port, unsigned int pin)
Read the pad value for a single pin in a GPIO port.
#define SPIDRV_MASTER_USARTRF1
Configuration data for SPI master using USARTRF1.
void ezradio_hal_DeassertShutdown(void)
SPIDRV_CsControl_t csControl
Select master mode chip select (CS) control scheme.
Peripheral Reflex System (PRS) peripheral API.
Ecode_t SPIDRV_MReceiveB(SPIDRV_Handle_t handle, void *buffer, int count)
Start a SPI master blocking receive transfer.
#define PRS_CH_CTRL_SIGSEL_GPIOPIN14