LibDriver CCS811
Loading...
Searching...
No Matches
ccs811 app driver function

ccs811 app driver modules More...

Collaboration diagram for ccs811 app driver function:

Functions

uint8_t ccs811_app_erase (ccs811_handle_t *handle)
 app erase
uint8_t ccs811_app_verify (ccs811_handle_t *handle)
 app verify
uint8_t ccs811_app_start (ccs811_handle_t *handle)
 app start
uint8_t ccs811_app_program (ccs811_handle_t *handle, uint8_t *rom, uint32_t len)
 app program
uint8_t ccs811_app_firmware_init (ccs811_handle_t *handle)
 app firmware initialize
uint8_t ccs811_app_firmware_update (ccs811_handle_t *handle, char *path)
 app firmware update

Detailed Description

ccs811 app driver modules

Function Documentation

◆ ccs811_app_erase()

uint8_t ccs811_app_erase ( ccs811_handle_t * handle)

app erase

Parameters
[in]*handlepointer to a ccs811 handle structure
Returns
status code
  • 0 success
  • 1 app erase failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 erase timeout
Note
none

Definition at line 956 of file driver_ccs811.c.

◆ ccs811_app_firmware_init()

uint8_t ccs811_app_firmware_init ( ccs811_handle_t * handle)

app firmware initialize

Parameters
[in]*handlepointer to a ccs811 handle structure
Returns
status code
  • 0 success
  • 1 iic or gpio initialization failed
  • 2 handle is NULL
  • 3 linked functions is NULL
  • 4 id is error
Note
none

Definition at line 1759 of file driver_ccs811.c.

◆ ccs811_app_firmware_update()

uint8_t ccs811_app_firmware_update ( ccs811_handle_t * handle,
char * path )

app firmware update

Parameters
[in]*handlepointer to a ccs811 handle structure
[in]*pathpointer a path buffer
Returns
status code
  • 0 success
  • 1 update failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 size is invalid
  • 5 update timeout
Note
none

Definition at line 1370 of file driver_ccs811.c.

◆ ccs811_app_program()

uint8_t ccs811_app_program ( ccs811_handle_t * handle,
uint8_t * rom,
uint32_t len )

app program

Parameters
[in]*handlepointer to a ccs811 handle structure
[in]*rompointer to a rom buffer
[in]lenrom length
Returns
status code
  • 0 success
  • 1 app program failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 len is invalid
Note
none

Definition at line 1124 of file driver_ccs811.c.

◆ ccs811_app_start()

uint8_t ccs811_app_start ( ccs811_handle_t * handle)

app start

Parameters
[in]*handlepointer to a ccs811 handle structure
Returns
status code
  • 0 success
  • 1 app start failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 start timeout
Note
none

Definition at line 1067 of file driver_ccs811.c.

◆ ccs811_app_verify()

uint8_t ccs811_app_verify ( ccs811_handle_t * handle)

app verify

Parameters
[in]*handlepointer to a ccs811 handle structure
Returns
status code
  • 0 success
  • 1 app verify failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 verify timeout
Note
none

Definition at line 1012 of file driver_ccs811.c.