#ifndef __IO_H_
#define __IO_H_

#include <stdint.h>

struct libwr2rf_dev;

/* Defined in host.c  */
void libwr2rf_write16 (struct libwr2rf_dev *dev, unsigned off, uint16_t v);
uint16_t libwr2rf_read16 (struct libwr2rf_dev *dev, unsigned off);

/* Defined in board.c  */
void     libwr2rf_rfnco_write32 (struct libwr2rf_dev *dev, unsigned id, unsigned off, uint32_t v);
uint32_t libwr2rf_rfnco_read32  (struct libwr2rf_dev *dev, unsigned id, unsigned off);

#endif /* __IO_H_ */
