aboutsummaryrefslogtreecommitdiff
path: root/doc/main.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/main.md')
-rw-r--r--doc/main.md174
1 files changed, 87 insertions, 87 deletions
diff --git a/doc/main.md b/doc/main.md
index 5c35a1c..f68e6ba 100644
--- a/doc/main.md
+++ b/doc/main.md
@@ -210,49 +210,49 @@ The following functions need to be implemented in your source code to be used by
- `void FT245_BE2_reset(void)`
- `void FT245_BE3_reset(void)`
- `void FT245_CLK_toggle(void)`
-- `uint32_t FT245_TXE_N_read(void)`
-- `uint32_t FT245_RXF_N_read(void)`
-- `uint32_t FT245_WR_N_read(void)`
-- `uint32_t FT245_SIWU_N_read(void)`
-- `uint32_t FT245_RD_N_read(void)`
-- `uint32_t FT245_OE_N_read(void)`
-- `uint32_t FT245_RST_N_read(void)`
-- `uint32_t FT245_DATA0_read(void)`
-- `uint32_t FT245_DATA1_read(void)`
-- `uint32_t FT245_DATA2_read(void)`
-- `uint32_t FT245_DATA3_read(void)`
-- `uint32_t FT245_DATA4_read(void)`
-- `uint32_t FT245_DATA5_read(void)`
-- `uint32_t FT245_DATA6_read(void)`
-- `uint32_t FT245_DATA7_read(void)`
-- `uint32_t FT245_DATA8_read(void)`
-- `uint32_t FT245_DATA9_read(void)`
-- `uint32_t FT245_DATA10_read(void)`
-- `uint32_t FT245_DATA11_read(void)`
-- `uint32_t FT245_DATA12_read(void)`
-- `uint32_t FT245_DATA13_read(void)`
-- `uint32_t FT245_DATA14_read(void)`
-- `uint32_t FT245_DATA15_read(void)`
-- `uint32_t FT245_DATA16_read(void)`
-- `uint32_t FT245_DATA17_read(void)`
-- `uint32_t FT245_DATA18_read(void)`
-- `uint32_t FT245_DATA19_read(void)`
-- `uint32_t FT245_DATA20_read(void)`
-- `uint32_t FT245_DATA21_read(void)`
-- `uint32_t FT245_DATA22_read(void)`
-- `uint32_t FT245_DATA23_read(void)`
-- `uint32_t FT245_DATA24_read(void)`
-- `uint32_t FT245_DATA25_read(void)`
-- `uint32_t FT245_DATA26_read(void)`
-- `uint32_t FT245_DATA27_read(void)`
-- `uint32_t FT245_DATA28_read(void)`
-- `uint32_t FT245_DATA29_read(void)`
-- `uint32_t FT245_DATA30_read(void)`
-- `uint32_t FT245_DATA31_read(void)`
-- `uint32_t FT245_BE0_read(void)`
-- `uint32_t FT245_BE1_read(void)`
-- `uint32_t FT245_BE2_read(void)`
-- `uint32_t FT245_BE3_read(void)`
+- `bool FT245_TXE_N_read(void)`
+- `bool FT245_RXF_N_read(void)`
+- `bool FT245_WR_N_read(void)`
+- `bool FT245_SIWU_N_read(void)`
+- `bool FT245_RD_N_read(void)`
+- `bool FT245_OE_N_read(void)`
+- `bool FT245_RST_N_read(void)`
+- `bool FT245_DATA0_read(void)`
+- `bool FT245_DATA1_read(void)`
+- `bool FT245_DATA2_read(void)`
+- `bool FT245_DATA3_read(void)`
+- `bool FT245_DATA4_read(void)`
+- `bool FT245_DATA5_read(void)`
+- `bool FT245_DATA6_read(void)`
+- `bool FT245_DATA7_read(void)`
+- `bool FT245_DATA8_read(void)`
+- `bool FT245_DATA9_read(void)`
+- `bool FT245_DATA10_read(void)`
+- `bool FT245_DATA11_read(void)`
+- `bool FT245_DATA12_read(void)`
+- `bool FT245_DATA13_read(void)`
+- `bool FT245_DATA14_read(void)`
+- `bool FT245_DATA15_read(void)`
+- `bool FT245_DATA16_read(void)`
+- `bool FT245_DATA17_read(void)`
+- `bool FT245_DATA18_read(void)`
+- `bool FT245_DATA19_read(void)`
+- `bool FT245_DATA20_read(void)`
+- `bool FT245_DATA21_read(void)`
+- `bool FT245_DATA22_read(void)`
+- `bool FT245_DATA23_read(void)`
+- `bool FT245_DATA24_read(void)`
+- `bool FT245_DATA25_read(void)`
+- `bool FT245_DATA26_read(void)`
+- `bool FT245_DATA27_read(void)`
+- `bool FT245_DATA28_read(void)`
+- `bool FT245_DATA29_read(void)`
+- `bool FT245_DATA30_read(void)`
+- `bool FT245_DATA31_read(void)`
+- `bool FT245_BE0_read(void)`
+- `bool FT245_BE1_read(void)`
+- `bool FT245_BE2_read(void)`
+- `bool FT245_BE3_read(void)`
For a detailed description on what these functions do, look at [FT245.md](FT245.md).
@@ -411,49 +411,49 @@ The following functions need to be implemented in your source code and assigned
- `void (*BE2_reset)(void);`
- `void (*BE3_reset)(void);`
- `void (*CLK_toggle)(void);`
-- `uint32_t (*TXE_N_read)(void);`
-- `uint32_t (*RXF_N_read)(void);`
-- `uint32_t (*WR_N_read)(void);`
-- `uint32_t (*SIWU_N_read)(void);`
-- `uint32_t (*RD_N_read)(void);`
-- `uint32_t (*OE_N_read)(void);`
-- `uint32_t (*RST_N_read)(void);`
-- `uint32_t (*DATA0_read)(void);`
-- `uint32_t (*DATA1_read)(void);`
-- `uint32_t (*DATA2_read)(void);`
-- `uint32_t (*DATA3_read)(void);`
-- `uint32_t (*DATA4_read)(void);`
-- `uint32_t (*DATA5_read)(void);`
-- `uint32_t (*DATA6_read)(void);`
-- `uint32_t (*DATA7_read)(void);`
-- `uint32_t (*DATA8_read)(void);`
-- `uint32_t (*DATA9_read)(void);`
-- `uint32_t (*DATA10_read)(void);`
-- `uint32_t (*DATA11_read)(void);`
-- `uint32_t (*DATA12_read)(void);`
-- `uint32_t (*DATA13_read)(void);`
-- `uint32_t (*DATA14_read)(void);`
-- `uint32_t (*DATA15_read)(void);`
-- `uint32_t (*DATA16_read)(void);`
-- `uint32_t (*DATA17_read)(void);`
-- `uint32_t (*DATA18_read)(void);`
-- `uint32_t (*DATA19_read)(void);`
-- `uint32_t (*DATA20_read)(void);`
-- `uint32_t (*DATA21_read)(void);`
-- `uint32_t (*DATA22_read)(void);`
-- `uint32_t (*DATA23_read)(void);`
-- `uint32_t (*DATA24_read)(void);`
-- `uint32_t (*DATA25_read)(void);`
-- `uint32_t (*DATA26_read)(void);`
-- `uint32_t (*DATA27_read)(void);`
-- `uint32_t (*DATA28_read)(void);`
-- `uint32_t (*DATA29_read)(void);`
-- `uint32_t (*DATA30_read)(void);`
-- `uint32_t (*DATA31_read)(void);`
-- `uint32_t (*BE0_read)(void);`
-- `uint32_t (*BE1_read)(void);`
-- `uint32_t (*BE2_read)(void);`
-- `uint32_t (*BE3_read)(void);`
+- `bool (*TXE_N_read)(void);`
+- `bool (*RXF_N_read)(void);`
+- `bool (*WR_N_read)(void);`
+- `bool (*SIWU_N_read)(void);`
+- `bool (*RD_N_read)(void);`
+- `bool (*OE_N_read)(void);`
+- `bool (*RST_N_read)(void);`
+- `bool (*DATA0_read)(void);`
+- `bool (*DATA1_read)(void);`
+- `bool (*DATA2_read)(void);`
+- `bool (*DATA3_read)(void);`
+- `bool (*DATA4_read)(void);`
+- `bool (*DATA5_read)(void);`
+- `bool (*DATA6_read)(void);`
+- `bool (*DATA7_read)(void);`
+- `bool (*DATA8_read)(void);`
+- `bool (*DATA9_read)(void);`
+- `bool (*DATA10_read)(void);`
+- `bool (*DATA11_read)(void);`
+- `bool (*DATA12_read)(void);`
+- `bool (*DATA13_read)(void);`
+- `bool (*DATA14_read)(void);`
+- `bool (*DATA15_read)(void);`
+- `bool (*DATA16_read)(void);`
+- `bool (*DATA17_read)(void);`
+- `bool (*DATA18_read)(void);`
+- `bool (*DATA19_read)(void);`
+- `bool (*DATA20_read)(void);`
+- `bool (*DATA21_read)(void);`
+- `bool (*DATA22_read)(void);`
+- `bool (*DATA23_read)(void);`
+- `bool (*DATA24_read)(void);`
+- `bool (*DATA25_read)(void);`
+- `bool (*DATA26_read)(void);`
+- `bool (*DATA27_read)(void);`
+- `bool (*DATA28_read)(void);`
+- `bool (*DATA29_read)(void);`
+- `bool (*DATA30_read)(void);`
+- `bool (*DATA31_read)(void);`
+- `bool (*BE0_read)(void);`
+- `bool (*BE1_read)(void);`
+- `bool (*BE2_read)(void);`
+- `bool (*BE3_read)(void);`
For a detailed description on what these functions do, look at [FT245.md](FT245.md).
@@ -462,7 +462,7 @@ For a detailed description on what these functions do, look at [FT245.md](FT245.
The following functions are used to send/receive data in runtime after initialization:
- `bool FT245_write_buffered(ft245_t *ft245, uint8_t *data, size_t size);`
-- `bool FT245_read_buffered(ft245_t *ft245, uint8_t *data, size_t size);`
+- `size_t FT245_read_buffered(ft245_t *ft245, uint8_t *data, size_t size);`
- `bool FT245_write_word_buffered(ft245_t *ft245, uint32_t word);`
- `bool FT245_read_word_buffered(ft245_t *ft245, uint32_t *word);`
- `size_t FT245_available_read(ft245_t *ft245);`