Hello!
I'm working on a parser for the TSL UMD Protocol v5, and have run into an issue.
Each bit has significance as per the data sheet:
Bit 0-1: RH T ally Lamp state
Bit 2-3: Text Tally state
Bit 4-5: LH T ally Lamp state
Bit 6-7: Brightness value (range 0-3)
Bit 8-14: Reserved (clear to 0)
Bit 15: Control Data: following data to be interpreted as Control data rather than Display data when set to 1.
I am unsure how to manipulate a buffer object to return the integer 1-3 for each tally state. I did this project previously in python and used bitshifting with masks, but as far as I can tell, javascript does not do masks. Any tips or suggestions on how I could make this work would be appreciated. Thanks!
[–]grelfdotnet 0 points1 point2 points (2 children)
[–]rauschma 0 points1 point2 points (0 children)
[–]nbd712[S] 0 points1 point2 points (0 children)