LibDriver MAX30102
Loading...
Searching...
No Matches
max30102 extern driver function

max30102 extern driver modules More...

Collaboration diagram for max30102 extern driver function:

Functions

uint8_t max30102_set_reg (max30102_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t max30102_get_reg (max30102_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

max30102 extern driver modules

Function Documentation

◆ max30102_get_reg()

uint8_t max30102_get_reg ( max30102_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to a max30102 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 2340 of file driver_max30102.c.

◆ max30102_set_reg()

uint8_t max30102_set_reg ( max30102_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to a max30102 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 2306 of file driver_max30102.c.