ags02ma base driver modules  
More...
ags02ma base driver modules 
◆ ags02ma_handle_t
ags02ma handle structure definition 
 
 
◆ ags02ma_info_t
ags02ma information structure definition 
 
 
◆ ags02ma_deinit()
close the chip 
- Parameters
- 
  
    | [in] | *handle | pointer to an ags02ma handle structure |  
 
- Returns
- status code
- 0 success
- 1 deinit failed
- 2 handle is NULL
- 3 handle is not initialized 
 
- Note
- none 
Definition at line 223 of file driver_ags02ma.c.
 
 
◆ ags02ma_get_resistance()
      
        
          | uint8_t ags02ma_get_resistance | ( | ags02ma_handle_t * | handle, | 
        
          |  |  | uint32_t * | raw, | 
        
          |  |  | double * | ohm ) | 
      
 
get resistance 
- Parameters
- 
  
    | [in] | *handle | pointer to an ags02ma handle structure |  | [out] | *raw | pointer to a raw data buffer |  | [out] | *ohm | pointer to a converted data buffer |  
 
- Returns
- status code
- 0 success
- 1 get resistance failed
- 2 handle is NULL
- 3 handle is not initialized
- 4 crc is error 
 
- Note
- none 
Definition at line 406 of file driver_ags02ma.c.
 
 
◆ ags02ma_get_slave_address()
get slave address 
- Parameters
- 
  
    | [in] | *handle | pointer to an ags02ma handle structure |  | [out] | *addr | pointer to a slave address buffer |  
 
- Returns
- status code
- 0 success
- 2 handle is NULL
- 3 handle is not initialized 
 
- Note
- none 
Definition at line 281 of file driver_ags02ma.c.
 
 
◆ ags02ma_get_version()
get version 
- Parameters
- 
  
    | [in] | *handle | pointer to an ags02ma handle structure |  | [out] | *version | pointer to a version buffer |  
 
- Returns
- status code
- 0 success
- 1 get resistance failed
- 2 handle is NULL
- 3 handle is not initialized
- 4 crc is error 
 
- Note
- none 
Definition at line 454 of file driver_ags02ma.c.
 
 
◆ ags02ma_info()
get chip's information 
- Parameters
- 
  
    | [out] | *info | pointer to an ags02ma info structure |  
 
- Returns
- status code
- 0 success
- 2 handle is NULL 
 
- Note
- none 
Definition at line 602 of file driver_ags02ma.c.
 
 
◆ ags02ma_init()
initialize the chip 
- Parameters
- 
  
    | [in] | *handle | pointer to an ags02ma handle structure |  
 
- Returns
- status code
- 0 success
- 1 init failed
- 2 handle is NULL
- 3 linked functions is NULL 
 
- Note
- none 
Definition at line 154 of file driver_ags02ma.c.
 
 
◆ ags02ma_modify_slave_address()
      
        
          | uint8_t ags02ma_modify_slave_address | ( | ags02ma_handle_t * | handle, | 
        
          |  |  | uint8_t | addr_7bit ) | 
      
 
modify slave address 
- Parameters
- 
  
    | [in] | *handle | pointer to an ags02ma handle structure |  | [in] | addr_7bit | new slave address |  
 
- Returns
- status code
- 0 success
- 1 modify slave address failed
- 2 handle is NULL
- 3 handle is not initialized 
 
- Note
- none 
Definition at line 498 of file driver_ags02ma.c.
 
 
◆ ags02ma_read_tvoc()
      
        
          | uint8_t ags02ma_read_tvoc | ( | ags02ma_handle_t * | handle, | 
        
          |  |  | uint32_t * | raw, | 
        
          |  |  | uint32_t * | ppb ) | 
      
 
read tvoc 
- Parameters
- 
  
    | [in] | *handle | pointer to an ags02ma handle structure |  | [out] | *raw | pointer to a raw data buffer |  | [out] | *ppb | pointer to a converted data buffer |  
 
- Returns
- status code
- 0 success
- 1 read tvoc failed
- 2 handle is NULL
- 3 handle is not initialized
- 4 crc is error
- 5 chip is busy 
 
- Note
- none 
Definition at line 311 of file driver_ags02ma.c.
 
 
◆ ags02ma_set_slave_address()
set slave address 
- Parameters
- 
  
    | [in] | *handle | pointer to an ags02ma handle structure |  | [in] | addr | slave address |  
 
- Returns
- status code
- 0 success
- 2 handle is NULL
- 3 handle is not initialized 
 
- Note
- none 
Definition at line 255 of file driver_ags02ma.c.
 
 
◆ ags02ma_zero_point_calibration()
zero point calibration 
- Parameters
- 
  
    | [in] | *handle | pointer to an ags02ma handle structure |  
 
- Returns
- status code
- 0 success
- 1 zero point calibration failed
- 2 handle is NULL
- 3 handle is not initialized 
 
- Note
- none 
Definition at line 362 of file driver_ags02ma.c.