LibDriver MAX31865
Loading...
Searching...
No Matches
max31865 extern driver function

max31865 extern driver modules More...

Collaboration diagram for max31865 extern driver function:

Functions

uint8_t max31865_set_reg (max31865_handle_t *handle, uint8_t reg, uint8_t value)
 set the chip register
uint8_t max31865_get_reg (max31865_handle_t *handle, uint8_t reg, uint8_t *value)
 get the chip register

Detailed Description

max31865 extern driver modules

Function Documentation

◆ max31865_get_reg()

uint8_t max31865_get_reg ( max31865_handle_t * handle,
uint8_t reg,
uint8_t * value )

get the chip register

Parameters
[in]*handlepointer to a max31865 handle structure
[in]regregister address
[out]*valuepointer to a register value buffer
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1097 of file driver_max31865.c.

◆ max31865_set_reg()

uint8_t max31865_set_reg ( max31865_handle_t * handle,
uint8_t reg,
uint8_t value )

set the chip register

Parameters
[in]*handlepointer to a max31865 handle structure
[in]regregister address
[in]valueregister value
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1071 of file driver_max31865.c.