ms5540.h File Reference

MS5540 temperature and pressure sensor routines. More...

#include "pic_utils.h"
Include dependency graph for ms5540.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ms5540_setup()   ms5540_setup_io()
 Setup ms5540 ports and pins.

Functions

void ms5540_calc_temp_and_pressure ()
uns16 ms5540_get_config (uns8 config_word)
uns16 ms5540_get_raw_pressure ()
uns16 ms5540_get_raw_temp ()
void ms5540_init ()
void ms5540_reset ()
void ms5540_setup_io (void)

Detailed Description

A library to communicate with the ms5540 sensor

Definition in file ms5540.h.


Define Documentation

 
#define ms5540_setup (  )     ms5540_setup_io()

Definition at line 72 of file ms5540.h.


Function Documentation

void ms5540_calc_temp_and_pressure (  ) 

Definition at line 322 of file ms5540.c.

References c1, c2, c3, c4, c5, c6, int16, int32, ms5540_get_raw_pressure(), ms5540_get_raw_temp(), serial_print_int(), serial_print_nl(), and serial_print_str().

Here is the call graph for this function:

uns16 ms5540_get_config ( uns8  config_word  ) 

Definition at line 102 of file ms5540.c.

References change_pin, ms5540_pulse_sclk(), ms5540_send_start(), ms5540_send_stop(), test_pin, uns16, and uns8.

Referenced by ms5540_init().

Here is the call graph for this function:

Here is the caller graph for this function:

uns16 ms5540_get_raw_pressure (  ) 

Definition at line 154 of file ms5540.c.

References clear_pin, ms5540_pulse_sclk(), ms5540_send_start(), ms5540_send_stop(), set_pin, test_pin, uns16, and uns8.

Referenced by ms5540_calc_temp_and_pressure().

Here is the call graph for this function:

Here is the caller graph for this function:

uns16 ms5540_get_raw_temp (  ) 

Definition at line 200 of file ms5540.c.

References clear_pin, ms5540_pulse_sclk(), ms5540_send_start(), ms5540_send_stop(), set_pin, test_pin, uns16, and uns8.

Referenced by ms5540_calc_temp_and_pressure().

Here is the call graph for this function:

Here is the caller graph for this function:

void ms5540_init (  ) 

Definition at line 247 of file ms5540.c.

References c1, c2, c3, c4, c5, c6, ms5540_get_config(), ms5540_reset(), serial_print_int(), serial_print_nl(), serial_print_spc(), serial_print_str(), and uns16.

Here is the call graph for this function:

void ms5540_reset (  ) 

Definition at line 80 of file ms5540.c.

References change_pin, ms5540_pulse_sclk(), uns16, and uns8.

Referenced by ms5540_init().

Here is the call graph for this function:

Here is the caller graph for this function:

void ms5540_setup_io ( void   ) 

Definition at line 46 of file ms5540.c.

References clear_pin, make_input, and make_output.


Generated on Wed Dec 8 13:47:32 2010 for Pic Pack by  doxygen 1.6.1