51#define ALT_GPIO_BITMASK 0x1FFFFFFF
59#ifndef ALT_GPIO_DATAREAD_TEST_MODE
60#define ALT_GPIO_DATAREAD_TEST_MODE false
306 ALT_GPIO_BIT29 = ALT_TWO_TO_POW29,
307 ALT_GPIO_BIT30 = ALT_TWO_TO_POW30,
308 ALT_GPIO_BIT31 = (int32_t) (1UL<<31),
310 ALT_GPIO_BITNUM_MAX = (28),
311 ALT_GPIO_BIT_MAX = (1 << ALT_GPIO_BITNUM_MAX),
312 ALT_END_OF_GPIO_PORT_SIGNALS = (32)
358 uint32_t mask, uint32_t
config);
402 uint32_t mask, uint32_t val);
457 uint32_t mask, uint32_t
config);
504 uint32_t mask, uint32_t
config);
562 uint32_t mask, uint32_t
config);
738 uint32_t mask, uint32_t val);
999 ALT_END_OF_GPIO_SIGNALS = -1,
1000 ALT_LAST_VALID_GPIO_BIT = ALT_HLGPI_15
enum ALT_GPIO_PIN_DEBOUNCE_e ALT_GPIO_PIN_DEBOUNCE_t
ALT_GPIO_PIN_POL_e
Definition: alt_generalpurpose_io.h:143
ALT_GPIO_PIN_DEBOUNCE_e
Definition: alt_generalpurpose_io.h:163
enum ALT_GPIO_PORTBIT_e ALT_GPIO_PORTBIT_t
enum ALT_GPIO_PORT_e ALT_GPIO_PORT_t
ALT_GPIO_PORT_e
Definition: alt_generalpurpose_io.h:207
ALT_STATUS_CODE alt_gpio_port_data_write(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, uint32_t val)
Definition: alt_generalpurpose_io.c:139
uint32_t alt_gpio_port_debounce_get(ALT_GPIO_PORT_t gpio_pid, uint32_t mask)
Definition: alt_generalpurpose_io.c:290
ALT_GPIO_PORTBIT_e
Definition: alt_generalpurpose_io.h:247
ALT_STATUS_CODE alt_gpio_port_sync_set(ALT_GPIO_PORT_t gpio_pid, uint32_t config)
Definition: alt_generalpurpose_io.c:311
ALT_STATUS_CODE alt_gpio_init(void)
Definition: alt_generalpurpose_io.c:66
ALT_STATUS_CODE alt_gpio_port_debounce_set(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, uint32_t config)
Definition: alt_generalpurpose_io.c:268
ALT_GPIO_PIN_SYNC_e
Definition: alt_generalpurpose_io.h:179
ALT_GPIO_PIN_DIR_e
Definition: alt_generalpurpose_io.h:114
enum ALT_GPIO_PIN_TYPE_e ALT_GPIO_PIN_TYPE_t
uint32_t alt_gpio_port_datadir_get(ALT_GPIO_PORT_t gpio_pid, uint32_t mask)
Definition: alt_generalpurpose_io.c:119
ALT_STATUS_CODE alt_gpio_port_sync_get(ALT_GPIO_PORT_t gpio_pid)
Definition: alt_generalpurpose_io.c:333
enum ALT_GPIO_PIN_DIR_e ALT_GPIO_PIN_DIR_t
ALT_STATUS_CODE alt_gpio_port_config(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, ALT_GPIO_PIN_DIR_t dir, ALT_GPIO_PIN_TYPE_t type, ALT_GPIO_PIN_POL_t pol, ALT_GPIO_PIN_DEBOUNCE_t debounc, uint32_t data)
Definition: alt_generalpurpose_io.c:351
ALT_STATUS_CODE alt_gpio_uninit(void)
Definition: alt_generalpurpose_io.c:82
enum ALT_GPIO_PIN_DATA_e ALT_GPIO_PIN_DATA_t
ALT_GPIO_PIN_DATA_e
Definition: alt_generalpurpose_io.h:192
enum ALT_GPIO_PIN_POL_e ALT_GPIO_PIN_POL_t
ALT_GPIO_PIN_TYPE_e
Definition: alt_generalpurpose_io.h:128
ALT_STATUS_CODE alt_gpio_port_datadir_set(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, uint32_t config)
Definition: alt_generalpurpose_io.c:98
uint32_t alt_gpio_port_data_read(ALT_GPIO_PORT_t gpio_pid, uint32_t mask)
Definition: alt_generalpurpose_io.c:165
enum ALT_GPIO_PIN_SYNC_e ALT_GPIO_PIN_SYNC_t
@ ALT_GPIO_PIN_ACTIVE_HIGH
Definition: alt_generalpurpose_io.h:150
@ ALT_GPIO_PIN_ACTIVE_LOW
Definition: alt_generalpurpose_io.h:146
@ ALT_GPIO_PIN_NODEBOUNCE
Definition: alt_generalpurpose_io.h:165
@ ALT_GPIO_PIN_DEBOUNCE
Definition: alt_generalpurpose_io.h:167
@ ALT_GPIO_PORTB
Definition: alt_generalpurpose_io.h:216
@ ALT_GPIO_PORTA
Definition: alt_generalpurpose_io.h:211
@ ALT_GPIO_PORT_UNKNOWN
Definition: alt_generalpurpose_io.h:230
@ ALT_GPIO_PORTC
Definition: alt_generalpurpose_io.h:225
@ ALT_GPIO_BIT21
Definition: alt_generalpurpose_io.h:291
@ ALT_GPIO_BIT10
Definition: alt_generalpurpose_io.h:269
@ ALT_GPIO_BIT26
Definition: alt_generalpurpose_io.h:301
@ ALT_GPIO_BIT23
Definition: alt_generalpurpose_io.h:295
@ ALT_GPIO_BIT4
Definition: alt_generalpurpose_io.h:257
@ ALT_GPIO_BIT6
Definition: alt_generalpurpose_io.h:261
@ ALT_GPIO_BIT18
Definition: alt_generalpurpose_io.h:285
@ ALT_GPIO_BIT24
Definition: alt_generalpurpose_io.h:297
@ ALT_GPIO_BIT5
Definition: alt_generalpurpose_io.h:259
@ ALT_GPIO_BIT3
Definition: alt_generalpurpose_io.h:255
@ ALT_GPIO_BIT11
Definition: alt_generalpurpose_io.h:271
@ ALT_GPIO_BIT8
Definition: alt_generalpurpose_io.h:265
@ ALT_GPIO_BIT25
Definition: alt_generalpurpose_io.h:299
@ ALT_GPIO_BIT9
Definition: alt_generalpurpose_io.h:267
@ ALT_GPIO_BIT14
Definition: alt_generalpurpose_io.h:277
@ ALT_GPIO_BIT16
Definition: alt_generalpurpose_io.h:281
@ ALT_GPIO_BIT2
Definition: alt_generalpurpose_io.h:253
@ ALT_GPIO_BIT7
Definition: alt_generalpurpose_io.h:263
@ ALT_GPIO_BIT0
Definition: alt_generalpurpose_io.h:249
@ ALT_GPIO_BIT12
Definition: alt_generalpurpose_io.h:273
@ ALT_GPIO_BIT27
Definition: alt_generalpurpose_io.h:303
@ ALT_GPIO_BIT17
Definition: alt_generalpurpose_io.h:283
@ ALT_GPIO_BIT28
Definition: alt_generalpurpose_io.h:305
@ ALT_GPIO_BIT15
Definition: alt_generalpurpose_io.h:279
@ ALT_GPIO_BIT19
Definition: alt_generalpurpose_io.h:287
@ ALT_GPIO_BIT13
Definition: alt_generalpurpose_io.h:275
@ ALT_GPIO_BIT1
Definition: alt_generalpurpose_io.h:251
@ ALT_GPIO_BIT22
Definition: alt_generalpurpose_io.h:293
@ ALT_GPIO_BIT20
Definition: alt_generalpurpose_io.h:289
@ ALT_GPIO_PIN_SYNC
Definition: alt_generalpurpose_io.h:183
@ ALT_GPIO_PIN_NOSYNC
Definition: alt_generalpurpose_io.h:181
@ ALT_GPIO_PIN_INPUT
Definition: alt_generalpurpose_io.h:116
@ ALT_GPIO_PIN_OUTPUT
Definition: alt_generalpurpose_io.h:118
@ ALT_GPIO_PIN_DATAONE
Definition: alt_generalpurpose_io.h:196
@ ALT_GPIO_PIN_DATAZERO
Definition: alt_generalpurpose_io.h:194
@ ALT_GPIO_PIN_EDGE_TRIG_INT
Definition: alt_generalpurpose_io.h:132
@ ALT_GPIO_PIN_LEVEL_TRIG_INT
Definition: alt_generalpurpose_io.h:130
ALT_STATUS_CODE alt_gpio_bit_config(ALT_GPIO_1BIT_t signal_num, ALT_GPIO_PIN_DIR_t dir, ALT_GPIO_PIN_TYPE_t type, ALT_GPIO_PIN_POL_t pol, ALT_GPIO_PIN_DEBOUNCE_t debounce, ALT_GPIO_PIN_DATA_t data)
Definition: alt_generalpurpose_io.c:568
enum ALT_GPIO_1BIT_e ALT_GPIO_1BIT_t
ALT_STATUS_CODE alt_gpio_bitconfig_get(ALT_GPIO_1BIT_t signal_num, ALT_GPIO_CONFIG_RECORD_t *config)
Definition: alt_generalpurpose_io.c:586
ALT_STATUS_CODE alt_gpio_group_config_get2(ALT_GPIO_1BIT_t *pinid_array, ALT_GPIO_CONFIG_RECORD_t *config_array, uint32_t len)
Definition: alt_generalpurpose_io.c:702
ALT_GPIO_1BIT_e
Definition: alt_generalpurpose_io.h:814
struct ALT_GPIO_CONFIG_RECORD_s ALT_GPIO_CONFIG_RECORD_t
ALT_STATUS_CODE alt_gpio_group_config_get(ALT_GPIO_CONFIG_RECORD_t *config_array, uint32_t len)
Definition: alt_generalpurpose_io.c:670
ALT_STATUS_CODE alt_gpio_group_config(ALT_GPIO_CONFIG_RECORD_t *config_array, uint32_t len)
Definition: alt_generalpurpose_io.c:622
struct ALT_GPIO_PIN_RECORD_s ALT_GPIO_PIN_RECORD_t
@ ALT_GPIO_1BIT_12
Definition: alt_generalpurpose_io.h:840
@ ALT_GPIO_1BIT_49
Definition: alt_generalpurpose_io.h:914
@ ALT_GPIO_1BIT_40
Definition: alt_generalpurpose_io.h:896
@ ALT_HLGPI_6
Definition: alt_generalpurpose_io.h:978
@ ALT_GPIO_1BIT_15
Definition: alt_generalpurpose_io.h:846
@ ALT_HLGPI_5
Definition: alt_generalpurpose_io.h:976
@ ALT_HLGPI_11
Definition: alt_generalpurpose_io.h:988
@ ALT_GPIO_1BIT_54
Definition: alt_generalpurpose_io.h:924
@ ALT_HLGPI_2
Definition: alt_generalpurpose_io.h:970
@ ALT_GPIO_1BIT_27
Definition: alt_generalpurpose_io.h:870
@ ALT_GPIO_1BIT_66
Definition: alt_generalpurpose_io.h:948
@ ALT_GPIO_1BIT_57
Definition: alt_generalpurpose_io.h:930
@ ALT_GPIO_1BIT_52
Definition: alt_generalpurpose_io.h:920
@ ALT_GPIO_1BIT_21
Definition: alt_generalpurpose_io.h:858
@ ALT_GPIO_1BIT_24
Definition: alt_generalpurpose_io.h:864
@ ALT_GPIO_1BIT_34
Definition: alt_generalpurpose_io.h:884
@ ALT_GPIO_1BIT_23
Definition: alt_generalpurpose_io.h:862
@ ALT_GPIO_1BIT_5
Definition: alt_generalpurpose_io.h:826
@ ALT_GPIO_1BIT_16
Definition: alt_generalpurpose_io.h:848
@ ALT_GPIO_1BIT_70
Definition: alt_generalpurpose_io.h:957
@ ALT_GPIO_1BIT_17
Definition: alt_generalpurpose_io.h:850
@ ALT_GPIO_1BIT_64
Definition: alt_generalpurpose_io.h:944
@ ALT_GPIO_1BIT_29
Definition: alt_generalpurpose_io.h:874
@ ALT_GPIO_1BIT_42
Definition: alt_generalpurpose_io.h:900
@ ALT_GPIO_1BIT_60
Definition: alt_generalpurpose_io.h:936
@ ALT_GPIO_1BIT_59
Definition: alt_generalpurpose_io.h:934
@ ALT_HLGPI_12
Definition: alt_generalpurpose_io.h:990
@ ALT_GPIO_1BIT_25
Definition: alt_generalpurpose_io.h:866
@ ALT_GPIO_1BIT_51
Definition: alt_generalpurpose_io.h:918
@ ALT_GPIO_1BIT_4
Definition: alt_generalpurpose_io.h:824
@ ALT_GPIO_1BIT_26
Definition: alt_generalpurpose_io.h:868
@ ALT_GPIO_1BIT_32
Definition: alt_generalpurpose_io.h:880
@ ALT_GPIO_1BIT_30
Definition: alt_generalpurpose_io.h:876
@ ALT_GPIO_1BIT_63
Definition: alt_generalpurpose_io.h:942
@ ALT_GPIO_1BIT_58
Definition: alt_generalpurpose_io.h:932
@ ALT_GPIO_1BIT_19
Definition: alt_generalpurpose_io.h:854
@ ALT_GPIO_1BIT_28
Definition: alt_generalpurpose_io.h:872
@ ALT_GPIO_1BIT_14
Definition: alt_generalpurpose_io.h:844
@ ALT_GPIO_1BIT_22
Definition: alt_generalpurpose_io.h:860
@ ALT_HLGPI_10
Definition: alt_generalpurpose_io.h:986
@ ALT_GPIO_1BIT_62
Definition: alt_generalpurpose_io.h:940
@ ALT_GPIO_1BIT_45
Definition: alt_generalpurpose_io.h:906
@ ALT_HLGPI_4
Definition: alt_generalpurpose_io.h:974
@ ALT_GPIO_1BIT_37
Definition: alt_generalpurpose_io.h:890
@ ALT_GPIO_1BIT_68
Definition: alt_generalpurpose_io.h:952
@ ALT_GPIO_1BIT_50
Definition: alt_generalpurpose_io.h:916
@ ALT_GPIO_1BIT_35
Definition: alt_generalpurpose_io.h:886
@ ALT_GPIO_1BIT_18
Definition: alt_generalpurpose_io.h:852
@ ALT_GPIO_1BIT_65
Definition: alt_generalpurpose_io.h:946
@ ALT_GPIO_1BIT_61
Definition: alt_generalpurpose_io.h:938
@ ALT_HLGPI_9
Definition: alt_generalpurpose_io.h:984
@ ALT_GPIO_1BIT_38
Definition: alt_generalpurpose_io.h:892
@ ALT_GPIO_1BIT_11
Definition: alt_generalpurpose_io.h:838
@ ALT_HLGPI_13
Definition: alt_generalpurpose_io.h:992
@ ALT_GPIO_1BIT_1
Definition: alt_generalpurpose_io.h:818
@ ALT_GPIO_1BIT_3
Definition: alt_generalpurpose_io.h:822
@ ALT_GPIO_1BIT_39
Definition: alt_generalpurpose_io.h:894
@ ALT_HLGPI_7
Definition: alt_generalpurpose_io.h:980
@ ALT_GPIO_1BIT_44
Definition: alt_generalpurpose_io.h:904
@ ALT_GPIO_1BIT_2
Definition: alt_generalpurpose_io.h:820
@ ALT_GPIO_1BIT_0
Definition: alt_generalpurpose_io.h:816
@ ALT_GPIO_1BIT_6
Definition: alt_generalpurpose_io.h:828
@ ALT_HLGPI_0
Definition: alt_generalpurpose_io.h:966
@ ALT_GPIO_1BIT_41
Definition: alt_generalpurpose_io.h:898
@ ALT_GPIO_1BIT_13
Definition: alt_generalpurpose_io.h:842
@ ALT_GPIO_1BIT_9
Definition: alt_generalpurpose_io.h:834
@ ALT_GPIO_1BIT_56
Definition: alt_generalpurpose_io.h:928
@ ALT_GPIO_1BIT_10
Definition: alt_generalpurpose_io.h:836
@ ALT_GPIO_1BIT_7
Definition: alt_generalpurpose_io.h:830
@ ALT_GPIO_1BIT_20
Definition: alt_generalpurpose_io.h:856
@ ALT_GPIO_1BIT_48
Definition: alt_generalpurpose_io.h:912
@ ALT_HLGPI_3
Definition: alt_generalpurpose_io.h:972
@ ALT_GPIO_1BIT_53
Definition: alt_generalpurpose_io.h:922
@ ALT_GPIO_1BIT_33
Definition: alt_generalpurpose_io.h:882
@ ALT_GPIO_1BIT_67
Definition: alt_generalpurpose_io.h:950
@ ALT_HLGPI_8
Definition: alt_generalpurpose_io.h:982
@ ALT_GPIO_1BIT_46
Definition: alt_generalpurpose_io.h:908
@ ALT_GPIO_1BIT_43
Definition: alt_generalpurpose_io.h:902
@ ALT_GPIO_1BIT_36
Definition: alt_generalpurpose_io.h:888
@ ALT_GPIO_1BIT_69
Definition: alt_generalpurpose_io.h:954
@ ALT_GPIO_1BIT_8
Definition: alt_generalpurpose_io.h:832
@ ALT_GPIO_1BIT_47
Definition: alt_generalpurpose_io.h:910
@ ALT_GPIO_1BIT_55
Definition: alt_generalpurpose_io.h:926
@ ALT_HLGPI_1
Definition: alt_generalpurpose_io.h:968
@ ALT_GPIO_1BIT_31
Definition: alt_generalpurpose_io.h:878
ALT_STATUS_CODE alt_gpio_port_int_mask_set(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, uint32_t val)
Definition: alt_generalpurpose_io.c:458
uint32_t alt_gpio_port_int_pol_get(ALT_GPIO_PORT_t gpio_pid, uint32_t mask)
Definition: alt_generalpurpose_io.c:248
uint32_t alt_gpio_port_int_mask_get(ALT_GPIO_PORT_t gpio_pid)
Definition: alt_generalpurpose_io.c:478
ALT_STATUS_CODE alt_gpio_port_int_type_set(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, uint32_t config)
Definition: alt_generalpurpose_io.c:184
uint32_t alt_gpio_port_int_enable_get(ALT_GPIO_PORT_t gpio_pid)
Definition: alt_generalpurpose_io.c:439
uint32_t alt_gpio_port_int_type_get(ALT_GPIO_PORT_t gpio_pid, uint32_t mask)
Definition: alt_generalpurpose_io.c:205
ALT_STATUS_CODE alt_gpio_port_int_status_clear(ALT_GPIO_PORT_t gpio_pid, uint32_t clrmask)
Definition: alt_generalpurpose_io.c:514
ALT_STATUS_CODE alt_gpio_port_int_enable(ALT_GPIO_PORT_t gpio_pid, uint32_t config)
Definition: alt_generalpurpose_io.c:400
ALT_STATUS_CODE alt_gpio_port_int_disable(ALT_GPIO_PORT_t gpio_pid, uint32_t config)
Definition: alt_generalpurpose_io.c:419
ALT_STATUS_CODE alt_gpio_port_int_pol_set(ALT_GPIO_PORT_t gpio_pid, uint32_t mask, uint32_t config)
Definition: alt_generalpurpose_io.c:225
uint32_t alt_gpio_port_int_status_get(ALT_GPIO_PORT_t gpio_pid)
Definition: alt_generalpurpose_io.c:496
uint32_t alt_gpio_port_ver_get(ALT_GPIO_PORT_t gpio_pid)
Definition: alt_generalpurpose_io.c:551
uint32_t alt_gpio_port_idcode_get(ALT_GPIO_PORT_t gpio_pid)
Definition: alt_generalpurpose_io.c:534
ALT_GPIO_PORT_t alt_gpio_bit_to_pid(ALT_GPIO_1BIT_t pin_num)
Definition: alt_generalpurpose_io.c:732
ALT_GPIO_PORTBIT_t alt_gpio_bit_to_port_pin(ALT_GPIO_1BIT_t pin_num)
Definition: alt_generalpurpose_io.c:748
ALT_GPIO_1BIT_t alt_gpio_port_pin_to_bit(ALT_GPIO_PORT_t pid, uint32_t bitmask)
Definition: alt_generalpurpose_io.c:764
int32_t ALT_STATUS_CODE
Definition: hwlib.h:60
Definition: alt_generalpurpose_io.h:1010
ALT_GPIO_PIN_POL_t polarity
Definition: alt_generalpurpose_io.h:1022
ALT_GPIO_PIN_TYPE_t type
Definition: alt_generalpurpose_io.h:1019
ALT_GPIO_PIN_DIR_t direction
Definition: alt_generalpurpose_io.h:1016
ALT_GPIO_1BIT_t signal_number
Definition: alt_generalpurpose_io.h:1013
ALT_GPIO_PIN_DEBOUNCE_t debounce
Definition: alt_generalpurpose_io.h:1025
ALT_GPIO_PIN_DATA_t data
Definition: alt_generalpurpose_io.h:1028
Definition: alt_generalpurpose_io.h:1037
ALT_GPIO_1BIT_t signal_number
Definition: alt_generalpurpose_io.h:1040
ALT_GPIO_PIN_DATA_t val
Definition: alt_generalpurpose_io.h:1043
Definition: deflate.c:114