1. function description
API- Obtain Device Status (GPS Status) Negative Return Value Parsing Description
2. analysis description


-
Badecimal conversion:
Negative decimal conversion to binary, the original code to get the inverse code, on the basis of the inverse code, plus 1 to get the complement, that is, the final result -
Conversion process:
Assume S1 returns:- 2147469949
Original code: 01111111111111111100101001111101
Inverse code: 10000000000000000011010110000010
complement: 10000000000000000011010110000011 **(final result) **

-
Parse example:
Bit 0 is calculated from the right
