mirror of
https://github.com/bmartini/zynq-axis.git
synced 2024-09-05 19:19:27 +08:00
c943552e52
Test new functions in test-cfg application.
25 lines
373 B
C
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 */
|