ISF  2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
SPI_CH1.c
Go to the documentation of this file.
1 /* ###################################################################
2 ** THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
3 ** Filename : SPI_CH1.c
4 ** CDE edition : Standard
5 ** Project : ISF_K64F_CW_PROJ
6 ** Processor : MK64FN1M0VLL12
7 ** Component : ISF_CommChannel_SPI
8 ** Version : Component 01.000, Driver 01.00, CPU db: 3.00.000
9 ** Compiler : GNU C Compiler
10 ** Date/Time : 2015-03-03, 11:01, # CodeGen: 0
11 ** Abstract :
12 **
13 ** Settings :
14 ** Contents :
15 ** No public methods
16 **
17 ** (c) Copyright <company/user-name>, 2014
18 http://www.<company>.com
19 mail: info@<company>.com
20 ** ###################################################################*/
21 /*!
22 ** @file SPI_CH1.c
23 ** @version 01.00
24 ** @brief
25 **
26 */
27 /*!
28 ** @addtogroup SPI_CH1_module SPI_CH1 module documentation
29 ** @{
30 */
31 
32 /* MODULE SPI_CH1. */
33 
34 #include "SPI_CH1.h"
35 #include "mqxlite.h"
36 #include "lwevent.h"
37 #include "Fsl_spi_master_driver.h"
38 #include "isf_spi_master_adapter.h"
39 #include "isf_fsl_spi_master_PEx.h"
40 /*
41 ** ===================================================================
42 ** Method : SPI_CH1_OnBlockReceived (component ISF_CommChannel_SPI)
43 **
44 ** Description :
45 ** This method is internal. It is used by Processor Expert only.
46 ** ===================================================================
47 */
48 void SPIMasterBus1_OnBlockReceived(LDD_TUserData *UserDataPtr)
49 {
50  spi_master_state_t * master = UserDataPtr;
51  _lwevent_set(&master->eventHandler, SPI_PEX_READ_EVENT_SUCCESS);
52 }
53 
54 /*
55 ** ===================================================================
56 ** Method : SPI_CH1_OnBlockSent (component ISF_CommChannel_SPI)
57 **
58 ** Description :
59 ** This method is internal. It is used by Processor Expert only.
60 ** ===================================================================
61 */
62 void SPIMasterBus1_OnBlockSent(LDD_TUserData *UserDataPtr)
63 {
64  spi_master_state_t * master = UserDataPtr;
65  _lwevent_set(&master->eventHandler, SPI_PEX_WRITE_EVENT_SUCCESS);
66 }
67 
68 /* END SPI_CH1. */
69 
70 /*!
71 ** @}
72 */
73 /*
74 ** ###################################################################
75 **
76 ** This file was created by Processor Expert 10.3 [05.09]
77 ** for the Freescale Kinetis series of microcontrollers.
78 **
79 ** ###################################################################
80 */
LWEVENT_STRUCT eventHandler
void SPIMasterBus1_OnBlockSent(LDD_TUserData *UserDataPtr)
Definition: SPI_CH1.c:62
void SPIMasterBus1_OnBlockReceived(LDD_TUserData *UserDataPtr)
Definition: SPI_CH1.c:48
isf_spi_master_adapter.h defines the API definitions and types for the spi master protocol adapter...
fsl_spi_master_driver.h defines structures and types for the spi master driver.
#define SPI_PEX_WRITE_EVENT_SUCCESS
event macros for the lld components.
#define SPI_PEX_READ_EVENT_SUCCESS