LibDriver MS5837
Loading...
Searching...
No Matches
ms5837 extend driver function

ms5837 extend driver modules More...

Collaboration diagram for ms5837 extend driver function:

Functions

uint8_t ms5837_set_reg (ms5837_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t ms5837_get_reg (ms5837_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

ms5837 extend driver modules

Function Documentation

◆ ms5837_get_reg()

uint8_t ms5837_get_reg ( ms5837_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to an ms5837 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 981 of file driver_ms5837.c.

◆ ms5837_set_reg()

uint8_t ms5837_set_reg ( ms5837_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to an ms5837 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 944 of file driver_ms5837.c.