LibDriver L3GD20H
Loading...
Searching...
No Matches
l3gd20h extern driver function

l3gd20h extern driver modules More...

Collaboration diagram for l3gd20h extern driver function:

Functions

uint8_t l3gd20h_set_reg (l3gd20h_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t l3gd20h_get_reg (l3gd20h_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

l3gd20h extern driver modules

Function Documentation

◆ l3gd20h_get_reg()

uint8_t l3gd20h_get_reg ( l3gd20h_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

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

Definition at line 4151 of file driver_l3gd20h.c.

◆ l3gd20h_set_reg()

uint8_t l3gd20h_set_reg ( l3gd20h_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

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

Definition at line 4124 of file driver_l3gd20h.c.