TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle

Library Typedefs. More...

Data Structures

struct  TM_AM2301_t
 AM2301 working structure. More...
 

Enumerations

enum  TM_AM2301_Result_t {
  TM_AM2301_Result_Ok = 0x00, TM_AM2301_Result_Error, TM_AM2301_Result_CONNECTION_ERROR, TM_AM2301_Result_WAITHIGH_ERROR,
  TM_AM2301_Result_WAITLOW_ERROR, TM_AM2301_Result_WAITHIGH_LOOP_ERROR, TM_AM2301_Result_WAITLOW_LOOP_ERROR, TM_AM2301_Result_PARITY_ERROR
}
 

Detailed Description

Library Typedefs.

Enumeration Type Documentation

Enumerations

There are several different possible results. If TM_AM2301_OK is returned from read function then you have valid data.

Enumerator
TM_AM2301_Result_Ok 

Everything OK

TM_AM2301_Result_Error 

An error occurred

TM_AM2301_Result_CONNECTION_ERROR 

Device is not connected

TM_AM2301_Result_WAITHIGH_ERROR 

Wait high pulse timeout

TM_AM2301_Result_WAITLOW_ERROR 

Wait low pulse timeout

TM_AM2301_Result_WAITHIGH_LOOP_ERROR 

Loop error for high pulse

TM_AM2301_Result_WAITLOW_LOOP_ERROR 

Loop error for low pulse

TM_AM2301_Result_PARITY_ERROR 

Data read fail