aboutsummaryrefslogtreecommitdiff
path: root/FT245.h
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2024-05-22 02:42:08 +0200
committerLeonard Kugis <leonard@kug.is>2024-05-22 02:42:08 +0200
commitefd8b0a08ac9439845c2c2f9d50d30cda8692421 (patch)
tree4f195e9418ee8bfbcd6a374e7acc4946114bd38a /FT245.h
parentb0356477bb99ce627e21091445fe0cd3fb8025d5 (diff)
Read-functions: Returning 'bool' to reflect signal state.
Diffstat (limited to 'FT245.h')
-rw-r--r--FT245.h172
1 files changed, 86 insertions, 86 deletions
diff --git a/FT245.h b/FT245.h
index fdaabf6..e90f791 100644
--- a/FT245.h
+++ b/FT245.h
@@ -192,49 +192,49 @@ typedef struct ft245 {
// Toggle
void (*CLK_toggle)(void);
// Read
- 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);
#endif // (FT245_DRIVER_MODE_DYNAMIC == 1)
} ft245_t;
@@ -396,49 +396,49 @@ extern void FT245_BE3_reset(void);
// Toggle
extern void FT245_CLK_toggle(void);
// Read
-extern uint32_t FT245_TXE_N_read(void);
-extern uint32_t FT245_RXF_N_read(void);
-extern uint32_t FT245_WR_N_read(void);
-extern uint32_t FT245_SIWU_N_read(void);
-extern uint32_t FT245_RD_N_read(void);
-extern uint32_t FT245_OE_N_read(void);
-extern uint32_t FT245_RST_N_read(void);
-extern uint32_t FT245_DATA0_read(void);
-extern uint32_t FT245_DATA1_read(void);
-extern uint32_t FT245_DATA2_read(void);
-extern uint32_t FT245_DATA3_read(void);
-extern uint32_t FT245_DATA4_read(void);
-extern uint32_t FT245_DATA5_read(void);
-extern uint32_t FT245_DATA6_read(void);
-extern uint32_t FT245_DATA7_read(void);
-extern uint32_t FT245_DATA8_read(void);
-extern uint32_t FT245_DATA9_read(void);
-extern uint32_t FT245_DATA10_read(void);
-extern uint32_t FT245_DATA11_read(void);
-extern uint32_t FT245_DATA12_read(void);
-extern uint32_t FT245_DATA13_read(void);
-extern uint32_t FT245_DATA14_read(void);
-extern uint32_t FT245_DATA15_read(void);
-extern uint32_t FT245_DATA16_read(void);
-extern uint32_t FT245_DATA17_read(void);
-extern uint32_t FT245_DATA18_read(void);
-extern uint32_t FT245_DATA19_read(void);
-extern uint32_t FT245_DATA20_read(void);
-extern uint32_t FT245_DATA21_read(void);
-extern uint32_t FT245_DATA22_read(void);
-extern uint32_t FT245_DATA23_read(void);
-extern uint32_t FT245_DATA24_read(void);
-extern uint32_t FT245_DATA25_read(void);
-extern uint32_t FT245_DATA26_read(void);
-extern uint32_t FT245_DATA27_read(void);
-extern uint32_t FT245_DATA28_read(void);
-extern uint32_t FT245_DATA29_read(void);
-extern uint32_t FT245_DATA30_read(void);
-extern uint32_t FT245_DATA31_read(void);
-extern uint32_t FT245_BE0_read(void);
-extern uint32_t FT245_BE1_read(void);
-extern uint32_t FT245_BE2_read(void);
-extern uint32_t FT245_BE3_read(void);
+extern bool FT245_TXE_N_read(void);
+extern bool FT245_RXF_N_read(void);
+extern bool FT245_WR_N_read(void);
+extern bool FT245_SIWU_N_read(void);
+extern bool FT245_RD_N_read(void);
+extern bool FT245_OE_N_read(void);
+extern bool FT245_RST_N_read(void);
+extern bool FT245_DATA0_read(void);
+extern bool FT245_DATA1_read(void);
+extern bool FT245_DATA2_read(void);
+extern bool FT245_DATA3_read(void);
+extern bool FT245_DATA4_read(void);
+extern bool FT245_DATA5_read(void);
+extern bool FT245_DATA6_read(void);
+extern bool FT245_DATA7_read(void);
+extern bool FT245_DATA8_read(void);
+extern bool FT245_DATA9_read(void);
+extern bool FT245_DATA10_read(void);
+extern bool FT245_DATA11_read(void);
+extern bool FT245_DATA12_read(void);
+extern bool FT245_DATA13_read(void);
+extern bool FT245_DATA14_read(void);
+extern bool FT245_DATA15_read(void);
+extern bool FT245_DATA16_read(void);
+extern bool FT245_DATA17_read(void);
+extern bool FT245_DATA18_read(void);
+extern bool FT245_DATA19_read(void);
+extern bool FT245_DATA20_read(void);
+extern bool FT245_DATA21_read(void);
+extern bool FT245_DATA22_read(void);
+extern bool FT245_DATA23_read(void);
+extern bool FT245_DATA24_read(void);
+extern bool FT245_DATA25_read(void);
+extern bool FT245_DATA26_read(void);
+extern bool FT245_DATA27_read(void);
+extern bool FT245_DATA28_read(void);
+extern bool FT245_DATA29_read(void);
+extern bool FT245_DATA30_read(void);
+extern bool FT245_DATA31_read(void);
+extern bool FT245_BE0_read(void);
+extern bool FT245_BE1_read(void);
+extern bool FT245_BE2_read(void);
+extern bool FT245_BE3_read(void);
#endif
void FT245_init(ft245_t *ft245);