LibDriver BH1750FVI  1.0.0
BH1750FVI full-featured driver
bh1750fvi extern driver function

bh1750fvi extern driver modules More...

Functions

uint8_t bh1750fvi_set_reg (bh1750fvi_handle_t *handle, uint8_t *buf, uint16_t len)
 set the chip register More...
 
uint8_t bh1750fvi_get_reg (bh1750fvi_handle_t *handle, uint8_t *buf, uint16_t len)
 get the chip register More...
 

Detailed Description

bh1750fvi extern driver modules

Function Documentation

◆ bh1750fvi_get_reg()

uint8_t bh1750fvi_get_reg ( bh1750fvi_handle_t handle,
uint8_t *  buf,
uint16_t  len 
)

get the chip register

Parameters
[in]*handlepointer to a bh1750fvi handle structure
[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 806 of file driver_bh1750fvi.c.

◆ bh1750fvi_set_reg()

uint8_t bh1750fvi_set_reg ( bh1750fvi_handle_t handle,
uint8_t *  buf,
uint16_t  len 
)

set the chip register

Parameters
[in]*handlepointer to a bh1750fvi handle structure
[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 780 of file driver_bh1750fvi.c.