mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
The Great ATSPI Renaming, part 6: change atrf API from atspi_* to atrf_*
- include/atrf.h, lib/atrf.c (struct atspi_dsc): renamed to "struct atrf_dsc" - include/atrf.h, lib/atrf.c (atspi_*): renamed all functions to atrf_* - include/misctxrx.h, lib/misctxrx.c (wait_for_interrupt): updated for API name change - atspi-id/atspi-id.c (show_usb_info, show_info, main), atspi-reset/atspi-reset.c (main), atspi-rssi/atspi-rssi.c (sweep, main), atspi-rssi/gui.h (gui), atspi-rssi/gui.c (sweep, gui), atspi-trim/atspi-trim.c (main), atspi-txrx/atspi-txrx.c (init_txrx, set_channel, set_power, receive, transmit, test_mode, main): updated for API name change
This commit is contained in:
@@ -16,27 +16,27 @@
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
struct atspi_dsc;
|
||||
struct atrf_dsc;
|
||||
|
||||
|
||||
void *atspi_usb_handle(struct atspi_dsc *dsc); /* hack for atspi-id */
|
||||
void *atrf_usb_handle(struct atrf_dsc *dsc); /* hack for atspi-id */
|
||||
|
||||
struct atspi_dsc *atspi_open(void);
|
||||
void atspi_close(struct atspi_dsc *dsc);
|
||||
struct atrf_dsc *atrf_open(void);
|
||||
void atrf_close(struct atrf_dsc *dsc);
|
||||
|
||||
int atspi_error(struct atspi_dsc *dsc);
|
||||
int atspi_clear_error(struct atspi_dsc *dsc);
|
||||
int atrf_error(struct atrf_dsc *dsc);
|
||||
int atrf_clear_error(struct atrf_dsc *dsc);
|
||||
|
||||
void atspi_reset(struct atspi_dsc *dsc);
|
||||
void atspi_reset_rf(struct atspi_dsc *dsc);
|
||||
int atspi_test_mode(struct atspi_dsc *dsc);
|
||||
void atrf_reset(struct atrf_dsc *dsc);
|
||||
void atrf_reset_rf(struct atrf_dsc *dsc);
|
||||
int atrf_test_mode(struct atrf_dsc *dsc);
|
||||
|
||||
void atspi_reg_write(struct atspi_dsc *dsc, uint8_t reg, uint8_t value);
|
||||
uint8_t atspi_reg_read(struct atspi_dsc *dsc, uint8_t reg);
|
||||
void atrf_reg_write(struct atrf_dsc *dsc, uint8_t reg, uint8_t value);
|
||||
uint8_t atrf_reg_read(struct atrf_dsc *dsc, uint8_t reg);
|
||||
|
||||
void atspi_buf_write(struct atspi_dsc *dsc, const void *buf, int size);
|
||||
int atspi_buf_read(struct atspi_dsc *dsc, void *buf, int size);
|
||||
void atrf_buf_write(struct atrf_dsc *dsc, const void *buf, int size);
|
||||
int atrf_buf_read(struct atrf_dsc *dsc, void *buf, int size);
|
||||
|
||||
int atspi_interrupt(struct atspi_dsc *dsc);
|
||||
int atrf_interrupt(struct atrf_dsc *dsc);
|
||||
|
||||
#endif /* !ATRF_H */
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "atrf.h"
|
||||
|
||||
|
||||
uint8_t wait_for_interrupt(struct atspi_dsc *dsc, uint8_t wait_for,
|
||||
uint8_t wait_for_interrupt(struct atrf_dsc *dsc, uint8_t wait_for,
|
||||
uint8_t ignore, int sleep_us, int timeout);
|
||||
|
||||
#endif /* !MISCTXRX_H */
|
||||
|
||||
Reference in New Issue
Block a user