You can use a 0x01 value and shift it as many times as the bit you want to access and then invert it, that way you can create a mask and change the value with the proper operator. You can find some examples for doing these kind of operations in the macro in the datasheet.h file in the SDK.
Hi hssmltd,
You can use a 0x01 value and shift it as many times as the bit you want to access and then invert it, that way you can create a mask and change the value with the proper operator. You can find some examples for doing these kind of operations in the macro in the datasheet.h file in the SDK.
Thanks MT_dialog
Thanks!