38 dbg_print(
"Reading base clock from PPWA subdevice %d\n", subdev->
id);
41 dbg_print(
" --> calculated offset is 0x%x!\n", offset);
60 dbg_print(
"Reading PPWA period for channel %d on subdevice %d\n", subdev->
id, channel);
63 dbg_print(
" --> calculated offset is 0x%x!\n", offset);
82 dbg_print(
"Reading PPWA hightime for channel %d on subdevice %d\n", subdev->
id, channel);
85 dbg_print(
" --> calculated offset is 0x%x!\n", offset);
uint32_t nof_channels
Address space size.
Data structures for flink devices and subdevices.
int flink_ppwa_get_baseclock(flink_subdev *subdev, uint32_t *frequency)
Reads the base clock of a PPWA subdevice.
#define PPWA_FIRSTPPWA_OFFSET
ssize_t flink_read(flink_subdev *subdev, uint32_t offset, uint8_t size, void *rdata)
Read from a flink subdevice.
int flink_ppwa_get_period(flink_subdev *subdev, uint32_t channel, uint32_t *period)
Reads the PPWA period.
int flink_ppwa_get_hightime(flink_subdev *subdev, uint32_t channel, uint32_t *hightime)
Reads the PPWA hightime.
#define dbg_print(fmt,...)