Board bringup: talk to the chip and read IDs.
- atusd/ERRATA: mention that the reset circuit can go, as expected
- atusd/tools/Makefile: add include path to at86rf230.h
- atusd/tools/lib/atusd.c: include atusd.h, for consistency checking
- atusd/tools/lib/atusd.c (spi_begin, spi_end, spi_data_in, spi_data_out,
spi_send_partial, spi_recv, spi_finish, spi_send): low-level functions
to access our modified SPI
- atusd/tools/lib/atusd.h, atusd/tools/lib/atusd.c (atusd_reg_write,
atusd_reg_read): register read and write access
- atusd/tools/try.c: read and print chip IDs
2010-09-05 22:59:59 +03:00
|
|
|
#ifndef ATUSD_H
|
|
|
|
#define ATUSD_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
2010-09-05 20:07:01 +03:00
|
|
|
struct atusd_dsc;
|
|
|
|
|
|
|
|
|
|
|
|
struct atusd_dsc *atusd_open(void);
|
|
|
|
void atusd_close(struct atusd_dsc *dsc);
|
|
|
|
void atusd_cycle(struct atusd_dsc *dsc);
|
|
|
|
void atusd_reset(struct atusd_dsc *dsc);
|
Board bringup: talk to the chip and read IDs.
- atusd/ERRATA: mention that the reset circuit can go, as expected
- atusd/tools/Makefile: add include path to at86rf230.h
- atusd/tools/lib/atusd.c: include atusd.h, for consistency checking
- atusd/tools/lib/atusd.c (spi_begin, spi_end, spi_data_in, spi_data_out,
spi_send_partial, spi_recv, spi_finish, spi_send): low-level functions
to access our modified SPI
- atusd/tools/lib/atusd.h, atusd/tools/lib/atusd.c (atusd_reg_write,
atusd_reg_read): register read and write access
- atusd/tools/try.c: read and print chip IDs
2010-09-05 22:59:59 +03:00
|
|
|
void atusd_reg_write(struct atusd_dsc *dsc, uint8_t reg, uint8_t v);
|
|
|
|
uint8_t atusd_reg_read(struct atusd_dsc *dsc, uint8_t reg);
|
|
|
|
|
|
|
|
#endif /* ATUSD_H */
|