Psi Swarm robot library version 0.9
Fork of PsiSwarmV8_CPP by
i2c.h@5:3cdd1a37cdd7, 2016-10-15 (annotated)
- Committer:
- jah128
- Date:
- Sat Oct 15 13:29:37 2016 +0000
- Revision:
- 5:3cdd1a37cdd7
- Parent:
- 2:c6986ee3c7c5
- Child:
- 6:b340a527add9
Initial commit of API Version 7 (fork from version 5)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jah128 | 0:d6269d17c8cf | 1 | /* University of York Robotics Laboratory PsiSwarm Library: I2C Header File |
jah128 | 0:d6269d17c8cf | 2 | * |
jah128 | 0:d6269d17c8cf | 3 | * File: i2c.h |
jah128 | 0:d6269d17c8cf | 4 | * |
jah128 | 0:d6269d17c8cf | 5 | * (C) Dept. Electronics & Computer Science, University of York |
jah128 | 0:d6269d17c8cf | 6 | * James Hilder, Alan Millard, Alexander Horsfield, Homero Elizondo, Jon Timmis |
jah128 | 0:d6269d17c8cf | 7 | * |
jah128 | 5:3cdd1a37cdd7 | 8 | * PsiSwarm Library Version: 0.7 |
jah128 | 0:d6269d17c8cf | 9 | * |
jah128 | 5:3cdd1a37cdd7 | 10 | * October 2016 |
jah128 | 0:d6269d17c8cf | 11 | * |
jah128 | 0:d6269d17c8cf | 12 | * |
jah128 | 0:d6269d17c8cf | 13 | */ |
jah128 | 0:d6269d17c8cf | 14 | |
jah128 | 0:d6269d17c8cf | 15 | #ifndef I2C_H |
jah128 | 0:d6269d17c8cf | 16 | #define I2C_H |
jah128 | 0:d6269d17c8cf | 17 | |
jah128 | 0:d6269d17c8cf | 18 | char get_dc_status(void); |
jah128 | 0:d6269d17c8cf | 19 | |
jah128 | 0:d6269d17c8cf | 20 | char IF_setup_led_expansion_ic(void); |
jah128 | 0:d6269d17c8cf | 21 | void IF_setup_gpio_expansion_ic(void); |
jah128 | 0:d6269d17c8cf | 22 | |
jah128 | 0:d6269d17c8cf | 23 | void IF_read_aux_ic_data(void); |
jah128 | 0:d6269d17c8cf | 24 | void IF_parse_gpio_byte0(char byte); |
jah128 | 0:d6269d17c8cf | 25 | void IF_parse_gpio_byte1(char byte); |
jah128 | 0:d6269d17c8cf | 26 | void IF_handle_gpio_interrupt(void); |
jah128 | 0:d6269d17c8cf | 27 | void IF_update_gpio_inputs(void); |
jah128 | 0:d6269d17c8cf | 28 | void IF_set_base_LED(char state); |
jah128 | 0:d6269d17c8cf | 29 | void IF_set_IR_emitter_output(char emitter, char state); |
jah128 | 0:d6269d17c8cf | 30 | unsigned short IF_read_IR_adc_value(char adc, char index); |
jah128 | 0:d6269d17c8cf | 31 | char IF_is_switch_pressed(void); |
jah128 | 0:d6269d17c8cf | 32 | char IF_get_switch_state(void); |
jah128 | 0:d6269d17c8cf | 33 | void IF_write_to_led_ic(char byte_0, char byte_1); |
jah128 | 0:d6269d17c8cf | 34 | void IF_setup_temperature_sensor(void); |
jah128 | 0:d6269d17c8cf | 35 | float IF_read_from_temperature_sensor(void); |
jah128 | 0:d6269d17c8cf | 36 | |
jah128 | 0:d6269d17c8cf | 37 | #endif |