#include "channel.h"
#include "sys/types.h"
Go to the source code of this file.
Trend sub-channel types.
Enumerator |
---|
trch_base |
|
trch_mean |
|
trch_rms |
|
trch_min |
|
trch_max |
|
trch_n |
|
Compare string to channel base name.
Compare the base string of a parsed channel name to the specified string. If the parsed channel name is a simple (non-trend) channel, the argument string is compared o the full channel name. If the parsed channel name has a sub-channel suffix (i.e the channel is a trend), the argument string is compared to the base channel name.
- Parameters
-
t | Parsed channel name structure pointer. |
s | Pointer to comparison string.. |
- Returns
- An integer greater, equal or less than zer depending on whether th parsed base string is greater, equal or less than s.
Release parsed data storage.
Release internal storage for a parsed channel name.
- Parameters
-
t | Parsed channel name structure pointer. |
Infer the data type from the the channel type and sub-channel ID.
- Parameters
-
t | Parsed channel name structure pointer. |
rawtype | Data type of raw channel. |
- Returns
- Inferred data type.
Infer channel information from the (parsed) channel name and the specified channel type, rate and data type.
- Parameters
-
t | Parsed channel name structure pointer. |
ctype | Default channel type. |
rate | Raw data type. |
rawtype | Data type of raw channel. |
Initialize the trench structure. THe name string is set to NULL, the channel and data types are set to unkown, the channel sub-type field is set to trch_base and the rate is set to zero.
- Parameters
-
t | Parsed channel name structure pointer. |
Parse a channel name.
Parse a channel specifier.
- Parameters
-
tch | Parsed channel name structure pointer. |
str | String to be parsed. |