Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of PsiSwarm-BeaconDemo_Bluetooth by
i2c.h
00001 /* University of York Robotics Laboratory PsiSwarm Library: I2C Header File 00002 * 00003 * File: i2c.h 00004 * 00005 * (C) Dept. Electronics & Computer Science, University of York 00006 * James Hilder, Alan Millard, Homero Elizondo, Jon Timmis 00007 * 00008 * PsiSwarm Library Version: 0.3 00009 * 00010 * October 2015 00011 * 00012 */ 00013 00014 #ifndef I2C_H 00015 #define I2C_H 00016 00017 char get_dc_status(void); 00018 00019 char IF_setup_led_expansion_ic(void); 00020 void IF_setup_gpio_expansion_ic(void); 00021 00022 void IF_read_aux_ic_data(void); 00023 void IF_parse_gpio_byte0(char byte); 00024 void IF_parse_gpio_byte1(char byte); 00025 void IF_handle_gpio_interrupt(void); 00026 void IF_update_gpio_inputs(void); 00027 void IF_set_base_LED(char state); 00028 void IF_set_IR_emitter_output(char emitter, char state); 00029 unsigned short IF_read_IR_adc_value(char adc, char index); 00030 char IF_is_switch_pressed(void); 00031 char IF_get_switch_state(void); 00032 void IF_write_to_led_ic(char byte_0, char byte_1); 00033 void IF_setup_temperature_sensor(void); 00034 float IF_read_from_temperature_sensor(void); 00035 00036 #endif
Generated on Thu Jul 14 2022 08:02:39 by
1.7.2
