mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
libatrf: added SRAM access functions
- tools/include/atrf.h (atrf_sram_write, atrf_sram_read), tools/lib/atrf.c: single-byte SRAM access front-end functions - tools/lib/driver.h (struct atrf_driver): new driver functions sram_write and sram_read
This commit is contained in:
@@ -305,6 +305,18 @@ int atrf_buf_read(struct atrf_dsc *dsc, void *buf, int size)
|
||||
}
|
||||
|
||||
|
||||
void atrf_sram_write(struct atrf_dsc *dsc, uint8_t addr, uint8_t value)
|
||||
{
|
||||
dsc->driver->sram_write(dsc->handle, addr, value);
|
||||
}
|
||||
|
||||
|
||||
uint8_t atrf_sram_read(struct atrf_dsc *dsc, uint8_t addr)
|
||||
{
|
||||
return dsc->driver->sram_read(dsc->handle, addr);
|
||||
}
|
||||
|
||||
|
||||
int atrf_interrupt(struct atrf_dsc *dsc)
|
||||
{
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user