Commit e5132336 authored by Alessandro Rubini's avatar Alessandro Rubini

core: add ZCSET_TYPE_TIME and reserve space for more

We always said we need analogue, digital and TDC/DTC support, so
add a type name for time converters. Meanwhile, reserve one bit
more so we may have up to 8 types -- but sure we don't want to state
what kind of physical measure does the analogue value represent.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent ea5a21ba
......@@ -928,11 +928,15 @@ or used by the developer are:
significant bits, but they are expected to share the sample
size in the data blocks.
@cindex ZCSET_TYPE_DIGITAL
@cindex ZCSET_TYPE_ANALOG
@cindex ZCSET_TYPE_TIME
@item unsigned long flags
Currently only the type: @code{ZCSET_TYPE_DIGITAL} or
@code{ZCSET_TYPE_ANALOG}. The flag has only informative value.
@c FIXME: CSET_TYPE_TIME
Currently only the type: @code{ZCSET_TYPE_DIGITAL},
@code{ZCSET_TYPE_ANALOG} or @code{ZCSET_TYPE_TIME} (other types
may be added in the future, we reserved for 8 of them).
The flag has only informative value.
@cindex channel template
@item struct zio_channel *chan_template
......
......@@ -137,11 +137,12 @@ struct zio_cset {
/* first 4bit are reserved for zio object universal flags */
enum zcset_flags {
ZCSET_TYPE = 0x10, /* 0 is digital - 1 is analog*/
ZCSET_TYPE = 0x70, /* digital, analog, time, TBD... */
ZCSET_TYPE_DIGITAL = 0x00,
ZCSET_TYPE_ANALOG = 0x10,
ZCSET_CHAN_ALLOC = 0x20, /* 1 if channels are allocated by zio*/
ZCSET_CHAN_ALLOC_ON = 0x20,
ZCSET_TYPE_TIME = 0x20,
ZCSET_CHAN_ALLOC = 0x80, /* 1 if channels are allocated by zio*/
ZCSET_CHAN_ALLOC_ON = 0x80,
ZCSET_CHAN_ALLOC_OFF = 0x00,
};
......
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