ezradio_hal.h

Go to the documentation of this file.
00001 /**************************************************************************/
00033 #ifndef _EZRADIO_HAL_H_
00034 #define _EZRADIO_HAL_H_
00035 
00036 #include "ezradiodrv_config.h"
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042 
00043 #if (defined EZRADIODRV_USE_SPIDRV)
00044 #include "spidrv.h"
00045 
00046 extern SPIDRV_HandleData_t  ezradioSpiHandle;
00047 extern SPIDRV_Handle_t      ezradioSpiHandlePtr;
00048 extern SPIDRV_Init_t        ezradioSpiInitData;
00049 #endif
00050 
00051 void    ezradio_hal_GpioInit( GPIOINT_IrqCallbackPtr_t ezradioIrqCallback );
00052 void    ezradio_hal_SpiInit( void );
00053 
00054 void    ezradio_hal_AssertShutdown  (void);
00055 void    ezradio_hal_DeassertShutdown(void);
00056 void    ezradio_hal_ClearNsel       (void);
00057 void    ezradio_hal_SetNsel         (void);
00058 uint8_t ezradio_hal_NirqLevel       (void);
00059 
00060 void    ezradio_hal_SpiWriteByte    (uint8_t byteToWrite);
00061 void    ezradio_hal_SpiReadByte     (uint8_t* readByte);
00062 
00063 void    ezradio_hal_SpiWriteData    (uint8_t byteCount, uint8_t* pData);
00064 void    ezradio_hal_SpiReadData     (uint8_t byteCount, uint8_t* pData);
00065 
00066 #ifdef __cplusplus
00067 }
00068 #endif
00069 
00070 #endif //_EZRADIO_HAL_H_