#include "ms5540.h"
#include "pic_serial.h"
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | MS5540_DELAY_AMOUNT 2 |
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_pulse_sclk () |
void | ms5540_reset () |
void | ms5540_send_start () |
void | ms5540_send_stop () |
void | ms5540_setup_io (void) |
Variables | |
int16 | c1 |
int16 | c2 |
int16 | c3 |
int16 | c4 |
int16 | c5 |
int16 | c6 |
#define MS5540_DELAY_AMOUNT 2 |
Definition at line 42 of file ms5540.c.
Referenced by ms5540_pulse_sclk().
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().
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().
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().
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().
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.
void ms5540_pulse_sclk | ( | ) |
Definition at line 54 of file ms5540.c.
References clear_pin, MS5540_DELAY_AMOUNT, and set_pin.
Referenced by ms5540_get_config(), ms5540_get_raw_pressure(), ms5540_get_raw_temp(), ms5540_reset(), ms5540_send_start(), and ms5540_send_stop().
void ms5540_reset | ( | ) |
Definition at line 80 of file ms5540.c.
References change_pin, ms5540_pulse_sclk(), uns16, and uns8.
Referenced by ms5540_init().
void ms5540_send_start | ( | ) |
Definition at line 63 of file ms5540.c.
References ms5540_pulse_sclk(), and set_pin.
Referenced by ms5540_get_config(), ms5540_get_raw_pressure(), and ms5540_get_raw_temp().
void ms5540_send_stop | ( | ) |
Definition at line 71 of file ms5540.c.
References clear_pin, and ms5540_pulse_sclk().
Referenced by ms5540_get_config(), ms5540_get_raw_pressure(), and ms5540_get_raw_temp().
void ms5540_setup_io | ( | void | ) |
Definition at line 46 of file ms5540.c.
References clear_pin, make_input, and make_output.
int16 c1 |
Definition at line 44 of file ms5540.c.
Referenced by ms5540_calc_temp_and_pressure(), ms5540_init(), and sht15_fix_humidity_r().
int16 c2 |
Definition at line 44 of file ms5540.c.
Referenced by ms5540_calc_temp_and_pressure(), ms5540_init(), and sht15_fix_humidity_r().
int16 c3 |
Definition at line 44 of file ms5540.c.
Referenced by ms5540_calc_temp_and_pressure(), ms5540_init(), and sht15_fix_humidity_r().
int16 c4 |
Definition at line 44 of file ms5540.c.
Referenced by ms5540_calc_temp_and_pressure(), and ms5540_init().
int16 c5 |
Definition at line 44 of file ms5540.c.
Referenced by ms5540_calc_temp_and_pressure(), and ms5540_init().
int16 c6 |
Definition at line 44 of file ms5540.c.
Referenced by ms5540_calc_temp_and_pressure(), and ms5540_init().