LibDriver BMM150
Loading...
Searching...
No Matches
bmm150 extern driver function

bmm150 extern driver modules More...

Collaboration diagram for bmm150 extern driver function:

Functions

uint8_t bmm150_set_reg (bmm150_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t bmm150_get_reg (bmm150_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

bmm150 extern driver modules

Function Documentation

◆ bmm150_get_reg()

uint8_t bmm150_get_reg ( bmm150_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to a bmm150 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 2790 of file driver_bmm150.c.

◆ bmm150_set_reg()

uint8_t bmm150_set_reg ( bmm150_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to a bmm150 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 2755 of file driver_bmm150.c.