fromShift

Returns an instance of ChannelFlag with ChannelFlag.shift equal to the specified shift.

Throws

if shift is not in 0..30.