#include "hmc6352.h"
#include "i2c.h"
Go to the source code of this file.
Functions | |
void | hmc6352_enter_cal () |
void | hmc6352_exit_cal () |
uns16 | hmc6352_get_data () |
uns8 | hmc6352_read_eeprom (uns8 addr) |
uns8 | hmc6352_read_ram (uns8 addr) |
void | hmc6352_save_op_mode () |
void | hmc6352_set_mode (uns8 mode) |
void | hmc6352_setup_io () |
void | hmc6352_sleep () |
void | hmc6352_update_bridge_offsets () |
void | hmc6352_wake () |
void | hmc6352_write_eeprom (uns8 addr, uns8 data) |
void | hmc6352_write_ram (uns8 addr, uns8 data) |
void hmc6352_enter_cal | ( | ) |
Definition at line 160 of file hmc6352.c.
References hmc6352_device_addr, hmc6352_enter_cal_cmd, hmc6352_write, i2c_send_byte(), i2c_start(), and i2c_stop().
void hmc6352_exit_cal | ( | ) |
Definition at line 171 of file hmc6352.c.
References hmc6352_device_addr, hmc6352_exit_cal_cmd, hmc6352_write, i2c_send_byte(), i2c_start(), and i2c_stop().
uns16 hmc6352_get_data | ( | ) |
Definition at line 193 of file hmc6352.c.
References hmc6352_device_addr, hmc6352_get_data_cmd, hmc6352_read, hmc6352_write, i2c_receive_byte(), i2c_send_ack(), i2c_send_byte(), i2c_start(), i2c_stop(), and uns16.
uns8 hmc6352_read_eeprom | ( | uns8 | addr | ) |
Definition at line 55 of file hmc6352.c.
References hmc6352_device_addr, hmc6352_read, hmc6352_read_from_eeprom, hmc6352_write, i2c_receive_byte(), i2c_send_ack(), i2c_send_byte(), i2c_start(), i2c_stop(), and uns8.
uns8 hmc6352_read_ram | ( | uns8 | addr | ) |
Definition at line 99 of file hmc6352.c.
References hmc6352_device_addr, hmc6352_read, hmc6352_read_from_ram, hmc6352_write, i2c_receive_byte(), i2c_send_ack(), i2c_send_byte(), i2c_start(), i2c_stop(), and uns8.
Referenced by hmc6352_set_mode().
void hmc6352_save_op_mode | ( | ) |
Definition at line 182 of file hmc6352.c.
References hmc6352_device_addr, hmc6352_save_op_mode_cmd, hmc6352_write, i2c_send_byte(), i2c_start(), and i2c_stop().
void hmc6352_set_mode | ( | uns8 | mode | ) |
Definition at line 225 of file hmc6352.c.
References hmc6352_mode_continuous, hmc6352_mode_query, hmc6352_mode_standby, hmc6352_read_ram(), hmc6352_write_ram(), and uns8.
void hmc6352_setup_io | ( | ) |
Definition at line 247 of file hmc6352.c.
References i2c_setup_io().
void hmc6352_sleep | ( | ) |
Definition at line 125 of file hmc6352.c.
References hmc6352_device_addr, hmc6352_sleep_cmd, hmc6352_write, i2c_send_byte(), i2c_start(), and i2c_stop().
void hmc6352_update_bridge_offsets | ( | ) |
Definition at line 149 of file hmc6352.c.
References hmc6352_device_addr, hmc6352_update_bridge_cmd, hmc6352_write, i2c_send_byte(), i2c_start(), and i2c_stop().
void hmc6352_wake | ( | ) |
Definition at line 137 of file hmc6352.c.
References hmc6352_device_addr, hmc6352_wake_cmd, hmc6352_write, i2c_send_byte(), i2c_start(), and i2c_stop().
void hmc6352_write_eeprom | ( | uns8 | addr, | |
uns8 | data | |||
) |
Definition at line 40 of file hmc6352.c.
References hmc6352_device_addr, hmc6352_write, hmc6352_write_to_eeprom, i2c_send_byte(), i2c_start(), and i2c_stop().
void hmc6352_write_ram | ( | uns8 | addr, | |
uns8 | data | |||
) |
Definition at line 82 of file hmc6352.c.
References hmc6352_device_addr, hmc6352_write, hmc6352_write_to_ram, i2c_send_byte(), i2c_start(), and i2c_stop().
Referenced by hmc6352_set_mode().