max6675 base driver modules
More...
max6675 base driver modules
◆ max6675_handle_t
max6675 handle structure definition
◆ max6675_info_t
max6675 information structure definition
◆ max6675_deinit()
close the chip
- Parameters
-
| [in] | *handle | pointer to a max6675 handle structure |
- Returns
- status code
- 0 success
- 1 deinit failed
- 2 handle is NULL
- 3 handle is not initialized
- Note
- none
Definition at line 151 of file driver_max6675.c.
◆ max6675_info()
get chip's information
- Parameters
-
| [out] | *info | pointer to a max6675 info structure |
- Returns
- status code
- 0 success
- 2 handle is NULL
- Note
- none
Definition at line 255 of file driver_max6675.c.
◆ max6675_init()
initialize the chip
- Parameters
-
| [in] | *handle | pointer to a max6675 handle structure |
- Returns
- status code
- 0 success
- 1 spi initialization failed
- 2 handle is NULL
- 3 linked functions is NULL
- Note
- none
Definition at line 86 of file driver_max6675.c.
◆ max6675_read()
| uint8_t max6675_read |
( |
max6675_handle_t * | handle, |
|
|
uint16_t * | raw, |
|
|
float * | temp ) |
read the temperature
- Parameters
-
| [in] | *handle | pointer to a max6675 handle structure |
| [out] | *raw | pointer to a raw data buffer |
| [out] | *temp | pointer to a temp buffer |
- Returns
- status code
- 0 success
- 1 read failed
- 2 handle is NULL
- 3 handle is not initialized
- 4 thermocouple input is open
- Note
- none
Definition at line 189 of file driver_max6675.c.