LibDriver LM75B
Loading...
Searching...
No Matches
lm75b extern driver function

lm75b extern driver modules More...

Collaboration diagram for lm75b extern driver function:

Functions

uint8_t lm75b_set_reg (lm75b_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t lm75b_get_reg (lm75b_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

lm75b extern driver modules

Function Documentation

◆ lm75b_get_reg()

uint8_t lm75b_get_reg ( lm75b_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to an lm75b handle structure
[in]regiic register 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 929 of file driver_lm75b.c.

◆ lm75b_set_reg()

uint8_t lm75b_set_reg ( lm75b_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to an lm75b handle structure
[in]regiic register 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 893 of file driver_lm75b.c.