You are missing the fact that some of these settings are bits 4~5 or 6~7
Take my example
PA = 128
MaxPower = 64
OutputPower = 7;
PA is bit 7
Maxpower is bits 4, 5 and 6
Output power is bits 0, 1, 2 and 3
So
Const PA = 0x80
Const MaxPower = 0x10 ( lowest ) thro to 0x70 ( highest )
Const Output power = 0x00 ( lowest ) to 0x0f ( highest )
Each bit ored together make up the final register
Take my example
PA = 128
MaxPower = 64
OutputPower = 7;
PA is bit 7
Maxpower is bits 4, 5 and 6
Output power is bits 0, 1, 2 and 3
So
Const PA = 0x80
Const MaxPower = 0x10 ( lowest ) thro to 0x70 ( highest )
Const Output power = 0x00 ( lowest ) to 0x0f ( highest )
Each bit ored together make up the final register