Lines Matching +full:16 +full:bit
27 /* 16 bits control configuration and state.
29 * * Bit 0 controls alert signal output mode
30 * * Bit 1 controls interrupt polarity
31 * * Bit 2 disables upper and lower threshold checking
32 * * Bit 3 enables alert signal output
33 * * Bit 4 records alert status
34 * * Bit 5 records interrupt status
35 * * Bit 6 locks the upper/lower window registers
36 * * Bit 7 locks the critical register
37 * * Bit 8 enters shutdown mode
40 #define JC42_CFG_ALERT_MODE_INT BIT(0)
41 #define JC42_CFG_ALERT_ENA BIT(3)
42 #define JC42_CFG_ALERT_STATE BIT(4)
43 #define JC42_CFG_INT_CLEAR BIT(5)
45 /* 16 bits are used for temperature and state encoding:
47 * in Celsius with 1/16 Cel resolution
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
53 #define JC42_TEMP_SCALE_CEL 16 /* signed */
54 #define JC42_TEMP_SIGN_BIT BIT(12)
56 #define JC42_TEMP_LWR_BIT BIT(13)
57 #define JC42_TEMP_UPR_BIT BIT(14)
58 #define JC42_TEMP_CRT_BIT BIT(15)
108 /* Get the 12-bit 2s complement value */ in jc42_temp_reg_from_signed()
125 /* Convert 12-bit 2s complement to signed negative in jc42_temp_signed_from_reg()