ISF  2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
isf_fsl_spi_master_PEx.h
Go to the documentation of this file.
1 /*
2  * isf_fsl_spi_master_PEx.h
3  *
4  * Created on: Apr 9, 2014
5  * Author: B39109
6  */
7 
8 #ifndef ISF_FSL_SPI_MASTER_PEX_H_
9 #define ISF_FSL_SPI_MASTER_PEX_H_
10 #include "PE_Types.h"
11 /**
12  * @brief This is the function pointer signature for i2c initialization.
13  */
14 typedef LDD_TDeviceData* (*fnSPIInit_t) (LDD_TUserData *apUserData);
15 /**
16  * @brief This is the function pointer signature for reading the data from a specified device.
17  */
18 typedef LDD_TError (*fnSPIRead_t) (LDD_TDeviceData *apDevice, LDD_TData *BufferPtr, uint16_t Size);
19 /**
20  * @brief This is the the function pointer signature for writing the data to a specified device.
21  */
22 typedef LDD_TError (*fnSPIWrite_t) (LDD_TDeviceData *apDevice, LDD_TData *BufferPtr, uint16_t Size);
23 /**
24  * @brief This structure contains i2c LLD function pointers.
25  */
26 typedef struct {
27  fnSPIInit_t fnSPILLDInit; /*!< Initialize a spi LDD component.*/
28  fnSPIRead_t fnSPICLLDRead; /*!< Read from a device.*/
29  fnSPIWrite_t fnSPILLDWrite; /*!< Write to a device.*/
31 
32 #endif /* ISF_FSL_SPI_MASTER_PEX_H_ */
33 
34 
35 
36 
37 
38 
LDD_TDeviceData *(* fnSPIInit_t)(LDD_TUserData *apUserData)
This is the function pointer signature for i2c initialization.
This structure contains i2c LLD function pointers.
LDD_TError(* fnSPIRead_t)(LDD_TDeviceData *apDevice, LDD_TData *BufferPtr, uint16_t Size)
This is the function pointer signature for reading the data from a specified device.
LDD_TError(* fnSPIWrite_t)(LDD_TDeviceData *apDevice, LDD_TData *BufferPtr, uint16_t Size)
This is the the function pointer signature for writing the data to a specified device.