Hi <@U0172QZ342D> We have been through most (all?)...
# mpw-one-silicon
j
Hi @User We have been through most (all?) videos and explanations. Are the GPIO defs values accurate?
Copy code
// Useful GPIO mode values
#define GPIO_MODE_MGMT_STD_INPUT_NOPULL    0x0403
#define GPIO_MODE_MGMT_STD_INPUT_PULLDOWN  0x0801
#define GPIO_MODE_MGMT_STD_INPUT_PULLUP	   0x0c01
#define GPIO_MODE_MGMT_STD_OUTPUT	   0x1809
#define GPIO_MODE_MGMT_STD_BIDIRECTIONAL   0x1801
#define GPIO_MODE_MGMT_STD_ANALOG   	   0x000b

#define GPIO_MODE_USER_STD_INPUT_NOPULL	   0x0402
#define GPIO_MODE_USER_STD_INPUT_PULLDOWN  0x0800
#define GPIO_MODE_USER_STD_INPUT_PULLUP	   0x0c00
#define GPIO_MODE_USER_STD_OUTPUT	   0x1808
#define GPIO_MODE_USER_STD_BIDIRECTIONAL   0x1800
#define GPIO_MODE_USER_STD_OUT_MONITORED   0x1802
#define GPIO_MODE_USER_STD_ANALOG   	   0x000a
Trying to map these against the pin settings used in sample sources. To check: the approach is one of trial-error (voltage ramp + tweak hex values) with the set bits to latch the correct values per GPIO?