ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
isf_ci_protocol.c
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2015, Freescale Semiconductor, Inc.
4  *
5 */
6 
7 /*!
8  * @file isf_ci_protocol.c
9  * @brief Command Interpreter (CI) protocol file containing the protocol routing table.
10  *
11  */
12 
13 #include "isf.h"
14 #include "isf_ci_protocol.h"
15 
16 
17 #include "Protocol1.h"
18 
19 
20 extern isf_status_t ci_mbox_init(uint8, void *);
22 
23 extern isf_status_t ci_stream_init(uint8, void *);
25 
26 
27 
28 /*!
29  * @brief CI Receive buffer size.
30  */
32 {
33  /* Do not modify. */
34  return (uint32)34;
35 }
36 
37 
38 
39 /*!
40  * @brief CI protocol user defined initialization data pointer table.
41  */
43 {
46 };
47 
48 
49 
50 /*!
51  * @brief CI protocol routing table.
52  */
54 {
55 
56  // Legacy mailbox protocol. Reserved, do not modify.
57  {
58  (ci_protocol_init_funcp_t*)ci_mbox_init, // Init function
60  0, // Destination buffer size
61  CI_PROTOCOL_ID_MBOX // Protocol ID
62  },
63 
64  {
67  64,
69  },
70 
71 
72  // Last element must contain NULL data.
73  {
74  NULL, // Init function
75  NULL, // Callback
76  0, // Destination buffer size
77  0, // Protocol ID
78  }
79 };
80 
81 
82 
unsigned char uint8
Definition: isf_types.h:76
void * ci_protocol_initdata_ptr_t
This is the pointer to the user defined data structure to be passed into the ci_protocol_init_funcp_t...
Command Interpreter (CI) Protocol header file.
uint32 isf_ci_get_recv_size(void)
CI Receive buffer size.
isf_status_t ci_stream_init(uint8, void *)
This is a CI stream protocol intialization callback function pointer.
ci_protocol_initdata_ptr_t ci_protocol_initptr_table[]
CI protocol user defined initialization data pointer table.
isf_status_t(* ci_protocol_callback_funcp_t)(uint32 anumSrcBytes, uint8 *apSrc, uint32 *apnumDestBytes, uint8 *apDest)
This is a CI protocol callback function pointer.
isf_status_t ci_protocol_CB_mbox(uint32, uint8 *, uint32 *, uint8 *)
Main ISF header file. Contains code common to all ISF components.
isf_status_t ci_mbox_init(uint8, void *)
isf_status_t(* ci_protocol_init_funcp_t)(uint8 aprotocolID, void *apInitData)
This is a CI protocol intialization callback function pointer.
isf_status_t ci_protocol_CB_stream(uint32, uint8 *, uint32 *, uint8 *)
This is a CI stream protocol callback function pointer.
int32 isf_status_t
ISF return status type.
Definition: isf.h:76
const ci_protocol_t ci_protocol_table[]
CI protocol routing table.
unsigned long int uint32
Definition: isf_types.h:78
This structure binds a protocol ID to a set of related functions and data. When a packet is received ...