| ISF 2.1 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
isf_sysconf_types.h
Go to the documentation of this file.
1 /*!
2 ********************************************************************************
3 * File: isf_sysconf_types.h
4 *
5 * Copyright (c) 2013, Freescale Semiconductor, Inc.
6 *
7 *******************************************************************************/
8 /*!
9 * @file isf_sysconf_types.h
10 * @brief This file defines the configuration types and structures for the system communication channel.
11 */
12 #ifndef SYSCONF_TYPES_H
13 #define SYSCONF_TYPES_H
14
15 #include <isf_comm.h>
16
17 typedef uint8 sys_channelId_t;
18
19 /**
20 * @brief This enumerator indexes protocol-specific functions and properties.
21 * @see sys_channelDescriptor_t#protocolType definition
22 */
23 typedef enum{
24 PROTOCOL_TYPE_I2C = 0,
25 PROTOCOL_TYPE_UART = 1,
26 PROTOCOL_TYPE_SPI = 2,
27 }sys_protocolType_t;
28
29 /**
30 * @brief This structure defines the channel descriptor.
31 *
32 */
33 typedef struct {
34 const void *pConfig; /*!< The pointer to the channel configuration. */
35 sys_protocolType_t protocolType; /*!< This protocol type determines which protocol-specific functions to call. */
36 comm_Id_t protocolInstanceId; /*!< The ID passed to the protocol-specific functions. This ID is not the same as the DM channel ID. */
37 } sys_channelDescriptor_t;
38
39 #endif /* SYSCONF_TYPES_H */
40
uint8
unsigned char uint8
This defines uint8 as unsigned char.
Definition: isf_types.h:18
sys_protocolType_t
sys_protocolType_t
This enumerator indexes protocol-specific functions and properties.
Definition: isf_sysconf_types.h:23
comm_Id_t
uint32 comm_Id_t
This type is for a numeric channel identifier- index into an array of channels in the system...
Definition: isf_comm.h:50
PROTOCOL_TYPE_UART
Definition: isf_sysconf_types.h:25
sys_channelId_t
uint8 sys_channelId_t
Definition: isf_sysconf_types.h:17
sys_channelDescriptor_t::protocolType
sys_protocolType_t protocolType
Definition: isf_sysconf_types.h:35
sys_channelDescriptor_t::protocolInstanceId
comm_Id_t protocolInstanceId
Definition: isf_sysconf_types.h:36
PROTOCOL_TYPE_I2C
Definition: isf_sysconf_types.h:24
PROTOCOL_TYPE_SPI
Definition: isf_sysconf_types.h:26
sys_channelDescriptor_t
This structure defines the channel descriptor.
Definition: isf_sysconf_types.h:33
sys_channelDescriptor_t::pConfig
const void * pConfig
Definition: isf_sysconf_types.h:34
isf_comm.h
isf_comm.h defines the common types for the Communications Service Family of the Intelligent Sensing ...
- © Freescale Semiconductor, Inc. 2015. All Rights Reserved.