diff options
author | Mike Ryan <mikeryan@lacklustre.net> | 2015-08-01 20:47:39 -0700 |
---|---|---|
committer | Mike Ryan <mikeryan@lacklustre.net> | 2015-08-01 20:47:39 -0700 |
commit | 26db64b2e83d93e21e06b64d19f22c444751def5 (patch) | |
tree | 03e3833d080266e490f64ff6e538a54494147476 /host/libubertooth | |
parent | 2e1075c2306f85b44a6684debe08c45de8227022 (diff) |
ego: complete rewrite into finite state machine
Supports:
- follow mode
- continuous RX
- jamming
Diffstat (limited to 'host/libubertooth')
-rw-r--r-- | host/libubertooth/src/ubertooth_control.c | 4 | ||||
-rw-r--r-- | host/libubertooth/src/ubertooth_control.h | 2 | ||||
-rw-r--r-- | host/libubertooth/src/ubertooth_interface.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/host/libubertooth/src/ubertooth_control.c b/host/libubertooth/src/ubertooth_control.c index 489a4b6..5d99129 100644 --- a/host/libubertooth/src/ubertooth_control.c +++ b/host/libubertooth/src/ubertooth_control.c @@ -932,11 +932,11 @@ int cmd_set_jam_mode(struct libusb_device_handle* devh, int mode) { return 0; } -int cmd_ego_sniff(struct libusb_device_handle* devh, u16 num) +int cmd_ego(struct libusb_device_handle* devh, int mode) { int r; - r = libusb_control_transfer(devh, CTRL_OUT, UBERTOOTH_EGO_SNIFF, num, 0, + r = libusb_control_transfer(devh, CTRL_OUT, UBERTOOTH_EGO, mode, 0, NULL, 0, 1000); if (r < 0) { if (r == LIBUSB_ERROR_PIPE) { diff --git a/host/libubertooth/src/ubertooth_control.h b/host/libubertooth/src/ubertooth_control.h index 60e2c45..28f360e 100644 --- a/host/libubertooth/src/ubertooth_control.h +++ b/host/libubertooth/src/ubertooth_control.h @@ -129,6 +129,6 @@ int cmd_read_register(struct libusb_device_handle* devh, u8 reg); int cmd_btle_slave(struct libusb_device_handle* devh, u8 *mac_address); int cmd_btle_set_target(struct libusb_device_handle* devh, u8 *mac_address); int cmd_set_jam_mode(struct libusb_device_handle* devh, int mode); -int cmd_ego_sniff(struct libusb_device_handle* devh, u16 num); +int cmd_ego(struct libusb_device_handle* devh, int mode); #endif /* __UBERTOOTH_CONTROL_H__ */ diff --git a/host/libubertooth/src/ubertooth_interface.h b/host/libubertooth/src/ubertooth_interface.h index 19756f9..333282c 100644 --- a/host/libubertooth/src/ubertooth_interface.h +++ b/host/libubertooth/src/ubertooth_interface.h @@ -85,7 +85,7 @@ enum ubertooth_usb_commands { UBERTOOTH_BTLE_PHY = 57, UBERTOOTH_WRITE_REGISTER = 58, UBERTOOTH_JAM_MODE = 59, - UBERTOOTH_EGO_SNIFF = 60, + UBERTOOTH_EGO = 60, }; enum jam_modes { |