SG_STATUS_SHIFT
#define SG_GET_PREV_SENSOR_STATUS(status) ((status) >> SG_STATUS_SHIFT)
status |= (((value) & SG_STATUS_MASK) << SG_STATUS_SHIFT)