EEVblog Electronics Community Forum
A Free & Open Forum For Electronics Enthusiasts & Professionals
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
This topic
This board
Entire forum
Google
Bing
Home
Help
Search
About us
Links
Login
Register
EEVblog Electronics Community Forum
»
Electronics
»
Microcontrollers
»
Does anyone recognize this data protocol?
« previous
next »
Print
Search
Pages:
Prev
1
[
2
]
All
Go Down
Author
Topic: Does anyone recognize this data protocol? (Read 4969 times)
0 Members and 1 Guest are viewing this topic.
mikeselectricstuff
Super Contributor
Posts: 13743
Country:
Re: Does anyone recognize this data protocol?
«
Reply #25 on:
October 19, 2018, 09:48:06 pm »
Quote from: arend on October 19, 2018, 08:12:32 pm
bit13 = (x >> 13) & 1 == 1 ? high : low;
Unless the compiler is quite clever, shifting the constant mask will be more efficient than shifting the value as it's done at compile time.
i.e. bit13 = ( x & (1<<13)) ? high : low;
Logged
Youtube channel
:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff
: High voltage, vintage electronics etc.
Day Job
: Mostly LEDs
Print
Search
Pages:
Prev
1
[
2
]
All
Go Up
« previous
next »
Share me
Smf
EEVblog Electronics Community Forum
»
Electronics
»
Microcontrollers
»
Does anyone recognize this data protocol?
There was an error while thanking
Thanking...
EEVblog Main Site
EEVblog on Youtube
EEVblog on Twitter
EEVblog on Facebook
EEVblog on Odysee