1
0
mirror of https://github.com/bmartini/zynq-axis.git synced 2024-09-05 19:19:27 +08:00
zynq-axis/lib/interface.h
Berin Martini c943552e52 Add cfg bus read/write function to interface lib
Test new functions in test-cfg application.
2014-12-31 13:30:36 -05:00

25 lines
373 B
C

#ifndef INTERFACE_H
#define INTERFACE_H
#ifdef __cplusplus
extern "C" {
#endif
#define REGISTER_NB 32
// init/exit function for device interface
int axis_init(const char *path);
int axis_exit();
// configuration bus
void cfg_write(unsigned int addr, unsigned int data);
int cfg_read(unsigned int addr);
#ifdef __cplusplus
}
#endif
#endif /* INTERFACE_H */