mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
tools/: new libatrf function atrf_slp_tr to control SLP_TR (for now only atben)
- include/atrf.h, lib/atrf.c (atrf_slp_tr): new function to set the SLP_TR line - lib/driver.h (struct atrf_driver): added driver function slp_tr - lib/atusb.c (atusb_driver): we dont support slp_tr yet - lib/atben.c (atben_slp_tr, atben_driver): implement SLP_TR control
This commit is contained in:
@@ -149,6 +149,15 @@ int atrf_test_mode(struct atrf_dsc *dsc)
|
||||
}
|
||||
|
||||
|
||||
int atrf_slp_tr(struct atrf_dsc *dsc, int on)
|
||||
{
|
||||
if (!dsc->driver->slp_tr)
|
||||
return 0;
|
||||
dsc->driver->slp_tr(dsc->handle, on);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
int atrf_set_clkm_generic(
|
||||
void (*reg_write)(void *dsc, uint8_t reg, uint8_t value),
|
||||
void *handle, int mhz)
|
||||
|
||||
Reference in New Issue
Block a user