LibDriver MAX6675
Loading...
Searching...
No Matches
max6675 base driver function

max6675 base driver modules More...

Collaboration diagram for max6675 base driver function:

Data Structures

struct  max6675_handle_s
 max6675 handle structure definition More...
struct  max6675_info_s
 max6675 information structure definition More...

Typedefs

typedef struct max6675_handle_s max6675_handle_t
 max6675 handle structure definition
typedef struct max6675_info_s max6675_info_t
 max6675 information structure definition

Functions

uint8_t max6675_info (max6675_info_t *info)
 get chip's information
uint8_t max6675_init (max6675_handle_t *handle)
 initialize the chip
uint8_t max6675_deinit (max6675_handle_t *handle)
 close the chip
uint8_t max6675_read (max6675_handle_t *handle, uint16_t *raw, float *temp)
 read the temperature

Detailed Description

max6675 base driver modules

Typedef Documentation

◆ max6675_handle_t

max6675 handle structure definition

◆ max6675_info_t

max6675 information structure definition

Function Documentation

◆ max6675_deinit()

uint8_t max6675_deinit ( max6675_handle_t * handle)

close the chip

Parameters
[in]*handlepointer 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()

uint8_t max6675_info ( max6675_info_t * info)

get chip's information

Parameters
[out]*infopointer 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()

uint8_t max6675_init ( max6675_handle_t * handle)

initialize the chip

Parameters
[in]*handlepointer 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]*handlepointer to a max6675 handle structure
[out]*rawpointer to a raw data buffer
[out]*temppointer 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.