
15 Jun
2011
15 Jun
'11
1:01 p.m.
Dear Wolfgang,
On Wednesday 15 June 2011 02:50 PM, Wolfgang Denk wrote:
Dear Aneesh V,
In message4DF871E3.8080307@ti.com you wrote:
So, the shift information is embedded in this mask and can be extracted by finding the first set bit. But in reality my get_bit_field() function indeed takes both arguments. So it's something like this:
As stated before, I will not accept any bit filed macros like get_bit_field().
Will you accept something like this?
a_val = (reg & a_mask) >> a_shift;
best regards, Aneesh