Lines Matching +full:temperature +full:- +full:format
6 * SPDX-License-Identifier: Apache-2.0
38 * * Bits 9-10 control threshold hysteresis
45 /* 16 bits are used for temperature and state encoding:
46 * * Bits 0..11 encode the temperature in a 2s complement signed value
48 * * Bit 12 is set to indicate a negative temperature
49 * * Bit 13 is set to indicate a temperature below the lower threshold
50 * * Bit 14 is set to indicate a temperature above the upper threshold
51 * * Bit 15 is set to indicate a temperature above the critical threshold
55 #define JC42_TEMP_ABS_MASK ((uint16_t)(JC42_TEMP_SIGN_BIT - 1U))
103 /* Encode a signed temperature in scaled Celsius to the format used in
108 /* Get the 12-bit 2s complement value */ in jc42_temp_reg_from_signed()
117 /* Decode a register temperature value to a signed temperature in
125 /* Convert 12-bit 2s complement to signed negative in jc42_temp_signed_from_reg()
128 rv = -(1U + (rv ^ JC42_TEMP_ABS_MASK)); in jc42_temp_signed_from_reg()