|
Represents a reference proxy to a channel operating over a bit range whose offset is fixed at compile time. Models ChannelConcept Example: More...
Detailed DescriptionRepresents a reference proxy to a channel operating over a bit range whose offset is fixed at compile time. Models ChannelConcept Example: // Reference to a 2-bit channel starting at bit 1 (i.e. the second bit)
typedef const packed_channel_reference<uint16_t,1,2,true> bits2_1_ref_t;
uint16_t data=0;
bits2_1_ref_t channel_ref(&data);
channel_ref = channel_traits<bits2_1_ref_t>::max_value(); // == 3
assert(data == 6); // == 3<<1 == 6
Generated on Mon Mar 26 2018 16:26:16 for Generic Image Library by
1.8.6
| ||||||||||||||||||||||||||||||||||||||||