Subversion Repositories ngs

Rev

Blame | Last modification | View Log | Download | RSS feed | ?url?

  1. #ifndef __NGS_JTAG_H__
  2. #define __NGS_JTAG_H__
  3.  
  4.  
  5.  
  6. #define INPUT 1
  7. #define OUTPUT 0
  8.  
  9. struct bus {
  10.         struct bus * next;
  11.         char * pin_name;
  12. };
  13.  
  14. void set_bus_dir(char * bscan_state,struct bus * mybus, int dir);
  15. void set_bus_out(char * bscan_state,struct bus * mybus, int value);
  16. int get_bus_in(char * bscan_state,struct bus * mybus);
  17.  
  18. struct bus * add_bus_pin(struct bus * mybus, char * pin_name);
  19. void del_bus(struct bus * mybus);
  20.  
  21.  
  22. void set_pin_out(char * bscan_state,char * pin_alias, int value);
  23. void set_pin_dir(char * bscan_state,char * pin_alias, int dir);
  24. int get_pin_out(char * bscan_state,char * pin_alias);
  25. int get_pin_dir(char * bscan_state,char * pin_alias);
  26. int get_pin_in(char * bscan_state,char * pin_alias); // input value on the pin
  27.  
  28.  
  29.  
  30.  
  31.  
  32. #endif
  33.