35 #include "mraa/gpio.h" 36 #include "mraa/uart.h" 58 mraa_gpio_context gpio_reset;
59 mraa_gpio_context gpio_trigger;
60 mraa_uart_context uart;
80 int trigger_pin,
float a_ref,
81 int uart,
bool analog_mode);
upm_result_t urm37_send_command(urm37_context dev, char *cmd, char *response)
Definition: urm37.c:173
upm_result_t urm37_reset(urm37_context dev)
Definition: urm37.c:139
upm_result_t urm37_write_eeprom(urm37_context dev, uint8_t addr, uint8_t value)
Definition: urm37.c:363
upm_result_t urm37_get_temperature(urm37_context dev, float *temperature)
Definition: urm37.c:293
upm_result_t urm37_get_distance(urm37_context dev, float *distance, int degrees)
Definition: urm37.c:238
upm_result_t urm37_read_eeprom(urm37_context dev, uint8_t addr, uint8_t *value)
Definition: urm37.c:329
urm37_context urm37_init(int a_pin, int reset_pin, int trigger_pin, float a_ref, int uart, bool analog_mode)
Definition: urm37.c:39
struct _urm37_context * urm37_context
void urm37_close(urm37_context dev)
Definition: urm37.c:125