ens160.status

Data Status Structure.

class Status:
Status(d)

Initializes structure from byte value.

warm_up

Set during first 3 minutes after power-on

inital_startup

Set during first full hour of operation after initial power-on24.

normal_operation

Set if in standard operating mode.

invalid_data

Set if signals give unexpected values (very high or very low). Multiple sensors out of range.

power_on

Set if the unit is not in deep_sleep.

error

Set if an error has occurred.

new_data

Set if data is available to read, automatically cleared after a read.

new_gpr

Set if new general purpose data is available, automatically cleared after a read.

def to_status(self):

Returns the byte value corresponding to the current value of the flags