src/software/picoreflow/lib/max31855.py
def checkErrors(self, data_32 = None):
        '''Checks error bits to see if there are any SCV, SCG, or OC faults'''
        if data_32 is None:
            data_32 = self.data
        anyErrors = (data_32 & 0x10000) != 0    # Fault bit, D16
        noConnection = (data_32 & 0x00000001) != 0       # OC bit, D0
        shortToGround = (data_32 & 0x00000002) != 0      # SCG bit, D1
        shortToVCC = (data_32 & 0x00000004) != 0         # SCV bit, D2
        if anyErrors:
            if noConnection:
                raise MAX31855Error("No Connection")
            elif shortToGround:
                raise MAX31855Error("Thermocouple short to ground")
            elif shortToVCC:
                raise MAX31855Error("Thermocouple short to VCC")
            else:
                # Perhaps another SPI device is trying to send data?
                # Did you remember to initialize all other SPI devices?
                raise MAX31855Error("Unknown Error")
Checks error bits to see if there are any SCV, SCG, or OC faults
Checks error bits to see if there are any SCV, SCG, or OC faults
Checks error bits to see if there are any SCV SCG or OC faults
def checkErrors(self, data_32 = None):
        if data_32 is None:
            data_32 = self.data
        anyErrors = (data_32 & 0x10000) != 0    
        noConnection = (data_32 & 0x00000001) != 0       
        shortToGround = (data_32 & 0x00000002) != 0      
        shortToVCC = (data_32 & 0x00000004) != 0         
        if anyErrors:
            if noConnection:
                raise MAX31855Error("No Connection")
            elif shortToGround:
                raise MAX31855Error("Thermocouple short to ground")
            elif shortToVCC:
                raise MAX31855Error("Thermocouple short to VCC")
            else:
                raise MAX31855Error("Unknown Error")
def checkErrors ( self , data_32 = None ) : if data_32 is None : data_32 = self . data anyErrors = ( data_32 & 0x10000 ) != 0 noConnection = ( data_32 & 0x00000001 ) != 0 shortToGround = ( data_32 & 0x00000002 ) != 0 shortToVCC = ( data_32 & 0x00000004 ) != 0 if anyErrors : if noConnection : raise MAX31855Error ( "No Connection" ) elif shortToGround : raise MAX31855Error ( "Thermocouple short to ground" ) elif shortToVCC : raise MAX31855Error ( "Thermocouple short to VCC" ) else : raise MAX31855Error ( "Unknown Error" )
Checks error bits to see if there are any SCV, SCG, or OC faults
Checks error bits to see if there are any SCV SCG or OC faults
'''Checks error bits to see if there are any SCV, SCG, or OC faults''' # Fault bit, D16 # OC bit, D0 # SCG bit, D1 # SCV bit, D2 # Perhaps another SPI device is trying to send data? # Did you remember to initialize all other SPI devices?
self
data_32