LibDriver AGS02MA
Loading...
Searching...
No Matches
ags02ma extend driver function

ags02ma extend driver modules More...

Collaboration diagram for ags02ma extend driver function:

Functions

uint8_t ags02ma_set_reg (ags02ma_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t ags02ma_get_reg (ags02ma_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

ags02ma extend driver modules

Function Documentation

◆ ags02ma_get_reg()

uint8_t ags02ma_get_reg ( ags02ma_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to an ags02ma handle structure
[in]regregister address
[out]*bufpointer to a data buffer
[in]lenlength of data buffer
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 575 of file driver_ags02ma.c.

◆ ags02ma_set_reg()

uint8_t ags02ma_set_reg ( ags02ma_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to an ags02ma handle structure
[in]regregister address
[in]*bufpointer to a data buffer
[in]lenlength of data buffer
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 543 of file driver_ags02ma.c.