File nut/dev/sht21.c


Included Files


Preprocessor definitions

#define SHT_READ_COUNT 3

#define POLYNOMIAL 0x131

#define T1x100 -4685L

#define T2x100 17572L

#define H1x100 -600L

#define H2x100 12500L

#define SHT_POLL_TOUT 90

#define SHT_POLL_CYCLE 5

#define SHT21_PRECISION SHT_RES_12_14


Global Variable sht_mutex

HANDLE sht_mutex
Visible in:   nut/dev/sht21.c
Used in: ShtCommand() nut/dev/sht21.c
  ShtInit() nut/dev/sht21.c

Global Function ShtCommand()

int ShtCommand ( uint8_t cmd, uint16_t* data )
Prototyped in: nut/include/dev/sht21.h
Calls: NutTwiMasterRegRead() nut/arch/m68k/coldfire/dev/common/mcf5_i2c.c
  NutTwiMasterTranceive() nut/arch/m68k/coldfire/dev/common/mcf5_i2c.c
  ShtCrc() nut/dev/sht21.c
  NutEventPost(), NutEventWait(), NutSleep()
Called by: ShtInit() nut/dev/sht21.c
  ShtRead() nut/dev/sht21.c
References Variables: sht_mutex nut/dev/sht21.c

Global Function ShtCrc()

int ShtCrc ( uint8_t* Data, uint8_t Size )
Prototyped in: nut/include/dev/sht21.h
Called by: ShtCommand() nut/dev/sht21.c

Global Function ShtInit()

int ShtInit ( void )
Prototyped in: nut/include/dev/sht21.h
Calls: ShtCommand() nut/dev/sht21.c
  NutEventPost()
References Variables: sht_mutex nut/dev/sht21.c

Global Function ShtRead()

int ShtRead ( uint8_t cmd, int16_t* val )
Prototyped in: nut/include/dev/sht21.h
Calls: ShtCommand() nut/dev/sht21.c