OpenCores
URL https://opencores.org/ocsvn/ftdi_wb_bridge/ftdi_wb_bridge/trunk

Subversion Repositories ftdi_wb_bridge

[/] [ftdi_wb_bridge/] [trunk/] [sw/] [ftdi_hw.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ultra_embe
#ifndef _FTDI_HW_H_
2
#define _FTDI_HW_H_
3
 
4
#include <stdint.h>
5
 
6
//-----------------------------------------------------------------
7
// Defines:
8
//-----------------------------------------------------------------
9
 
10
//-----------------------------------------------------------------
11
// Prototypes:
12
//-----------------------------------------------------------------
13
int ftdi_hw_init(int interface);
14
int ftdi_hw_close(void);
15
 
16
// Memory Access
17
int ftdi_hw_mem_write(uint32_t addr, uint8_t *data, int length);
18
int ftdi_hw_mem_read(uint32_t addr, uint8_t *data, int length);
19
int ftdi_hw_mem_write_word(uint32_t addr, uint32_t data);
20
int ftdi_hw_mem_read_word(uint32_t addr, uint32_t *data);
21
 
22
// GPIO
23
int ftdi_hw_gpio_write(uint8_t value);
24
int ftdi_hw_gpio_read(uint8_t *value);
25
 
26
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.