26 Nov
2012
26 Nov
'12
5:36 p.m.
On Mon, Nov 26, 2012 at 05:14:58PM +0100, Paolo Doz wrote:
8 bit register (ie ADC A) bit 0 -> select left1 or left2 bit 1 -> select right1 or right2
bit2/3/4 other settings
bit5 -> if 1 select left5 otherwise select (left1 or left2) depending on bit0 bit6 -> if 1 select right5 otherwise select (right1 or rigth2) depending on bit1
Is there any SOC_ENUM that can be used to represent this situation? I mean something like "Left1, Left2, Left5" ?
At the moment I have one SOC_ENUM to select "Left1, Left2" and another for "Left1/2, Left5"
That's pretty special and creative, you'd have to open code it otherwise the structure you've got sounds about as good as it gets.