1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

libatrf: new function atrf_identify to identify the chip

- tools/lib/atrf.h, tools/lib/atrf.c (atrf_identify): added chip
  identification function to library
- tools/atrf-id/atrf-id.c (show_info): print information returned by
  atrf_identify
- tools/atrf-id/atrf-id.c (show_info): decode JEDEC manufacturer ID
This commit is contained in:
Werner Almesberger
2011-01-07 12:35:51 -03:00
parent 4ef7a829c2
commit a9321cea7c
3 changed files with 66 additions and 5 deletions

View File

@@ -16,6 +16,13 @@
#include <stdint.h>
enum atrf_chip_id {
atrf_unknown_chip = 0,
artf_at86rf230 = 1,
artf_at86rf231 = 2,
};
struct atrf_dsc;
@@ -29,6 +36,9 @@ int atrf_clear_error(struct atrf_dsc *dsc);
void atrf_reset(struct atrf_dsc *dsc);
void atrf_reset_rf(struct atrf_dsc *dsc);
enum atrf_chip_id atrf_identify(struct atrf_dsc *dsc);
int atrf_test_mode(struct atrf_dsc *dsc);
void atrf_reg_write(struct atrf_dsc *dsc, uint8_t reg, uint8_t value);