ISF  1.1
Intelligent Sensing Framework
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Include/isf_sysconf_types.h
Go to the documentation of this file.
00001 /*!
00002 ********************************************************************************
00003 * File: isf_sysconf_types.h
00004 *
00005 * Copyright (c) 2012, Freescale Semiconductor, Inc.
00006 *
00007 *******************************************************************************/
00008 /*!
00009 * @file isf_sysconf_types.h
00010 * @brief  This file defines the configuration types and structures for the system communication channel. 
00011 */
00012 #ifndef SYSCONF_TYPES_H
00013 #define SYSCONF_TYPES_H
00014 
00015 #include <isf_comm.h>
00016 
00017 typedef uint8   sys_channelId_t;
00018 
00019  /**
00020  * @brief This enumerator indexes protocol-specific functions and properties.
00021  * @see sys_channelDescriptor_t#protocolType definition
00022  */
00023 typedef enum {
00024     PROTOCOL_TYPE_I2C   = 0,   
00025 /*!< The identifier for the I2C protocol   */
00026     PROTOCOL_TYPE_SPI   = 1,   
00027 /*!< The identifier for the SPI protocol   */
00028     PROTOCOL_TYPE_RGPIO = 2    
00029 /*!< The identifier for the RGPIO protocol */
00030 } sys_protocolType_t;
00031 /**
00032 * @brief This structure defines the channel descriptor.
00033 * 
00034 */
00035 typedef struct {
00036     const void         *pConfig;        /*!< The pointer to the channel configuration. */
00037     sys_protocolType_t  protocolType;   /*!< This protocol type determines which protocol-specific functions to call.  */
00038     comm_Id_t           protocolInstanceId;  /*!< The ID passed to the protocol-specific functions.  This ID is not the same as the DM channel ID. */
00039 } sys_channelDescriptor_t;
00040 
00041 #endif /* SYSCONF_TYPES_H */