LibDriver SGP40
Loading...
Searching...
No Matches
sgp40 interface driver function

sgp40 interface driver modules More...

Collaboration diagram for sgp40 interface driver function:

Functions

uint8_t sgp40_interface_iic_init (void)
 interface iic bus init
uint8_t sgp40_interface_iic_deinit (void)
 interface iic bus deinit
uint8_t sgp40_interface_iic_write_cmd (uint8_t addr, uint8_t *buf, uint16_t len)
 interface iic bus write command
uint8_t sgp40_interface_iic_read_cmd (uint8_t addr, uint8_t *buf, uint16_t len)
 interface iic bus read command
void sgp40_interface_delay_ms (uint32_t ms)
 interface delay ms
void sgp40_interface_debug_print (const char *const fmt,...)
 interface print format data

Detailed Description

sgp40 interface driver modules

Function Documentation

◆ sgp40_interface_debug_print()

void sgp40_interface_debug_print ( const char *const fmt,
... )

interface print format data

Parameters
[in]fmtis the format data
Note
none

Definition at line 108 of file driver_sgp40_interface_template.c.

◆ sgp40_interface_delay_ms()

void sgp40_interface_delay_ms ( uint32_t ms)

interface delay ms

Parameters
[in]ms
Note
none

Definition at line 98 of file driver_sgp40_interface_template.c.

◆ sgp40_interface_iic_deinit()

uint8_t sgp40_interface_iic_deinit ( void )

interface iic bus deinit

Returns
status code
  • 0 success
  • 1 iic deinit failed
Note
none

Definition at line 58 of file driver_sgp40_interface_template.c.

◆ sgp40_interface_iic_init()

uint8_t sgp40_interface_iic_init ( void )

interface iic bus init

Returns
status code
  • 0 success
  • 1 iic init failed
Note
none

Definition at line 46 of file driver_sgp40_interface_template.c.

◆ sgp40_interface_iic_read_cmd()

uint8_t sgp40_interface_iic_read_cmd ( uint8_t addr,
uint8_t * buf,
uint16_t len )

interface iic bus read command

Parameters
[in]addris the iic device write address
[out]*bufpoints to a data buffer
[in]lenis the length of data buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 88 of file driver_sgp40_interface_template.c.

◆ sgp40_interface_iic_write_cmd()

uint8_t sgp40_interface_iic_write_cmd ( uint8_t addr,
uint8_t * buf,
uint16_t len )

interface iic bus write command

Parameters
[in]addris the iic device write address
[in]*bufpoints to a data buffer
[in]lenis the length of data buffer
Returns
status code
  • 0 success
  • 1 write failed
Note
none

Definition at line 73 of file driver_sgp40_interface_template.c.