Commit cb392c6a authored by Matteo Quintiliani's avatar Matteo Quintiliani
Browse files

Added enum NMXP_DATATYPE


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@21 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 14b66750
......@@ -30,6 +30,14 @@ typedef struct {
} NMXP_CHAN_LIST;
/*! \brief Type of Data */
typedef enum {
NMXP_DATA_TIMESERIES = 1,
NMXP_DATA_SOH = 2,
NMXP_DATA_TRANSERIAL = 6
} NMXP_DATATYPE;
/*! \brief Looks up a channel key in the list using the name
*
* \param name Channel name.
......@@ -60,7 +68,7 @@ char *nmxp_chan_lookupName(uint32_t key, NMXP_CHAN_LIST *channelList);
* \warning Returned value will need to be freed!
*
*/
NMXP_CHAN_LIST *nmxp_chan_getType(NMXP_CHAN_LIST *channelList, uint8_t dataType);
NMXP_CHAN_LIST *nmxp_chan_getType(NMXP_CHAN_LIST *channelList, NMXP_DATATYPE dataType);
#endif
......@@ -42,7 +42,7 @@ char *nmxp_chan_lookupName(uint32_t key, NMXP_CHAN_LIST *channelList)
return NULL;
}
NMXP_CHAN_LIST *nmxp_chan_getType(NMXP_CHAN_LIST *channelList, uint8_t dataType) {
NMXP_CHAN_LIST *nmxp_chan_getType(NMXP_CHAN_LIST *channelList, NMXP_DATATYPE dataType) {
NMXP_CHAN_LIST *ret_channelList = NULL;
int chan_number = channelList->number;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment