tws.h 425 B

123456789101112131415161718192021
  1. /*
  2. * (C) Copyright 2009
  3. * Detlev Zundel, DENX Software Engineering, dzu@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef _TWS_H_
  8. #define _TWS_H_
  9. /*
  10. * Read/Write interface:
  11. * buffer: Where to read/write the data
  12. * len: How many bits to read/write
  13. *
  14. * Returns: 0 on success, not 0 on failure
  15. */
  16. int tws_read(uchar *buffer, int len);
  17. int tws_write(uchar *buffer, int len);
  18. #endif /* _TWS_H_ */