5.2.22 Get Pin Function
Format: GW,<hex8>
This command is utilized to query the pin function for a specific pin, and it will respond with the pin function as outlined in Table 5-14. The input parameter is an 8-bit hex representing the pin index, as indicated in Table 5-13. If the specified pin has both PTA function and another function and the PTA function is enabled, the specific pin will display the PTA function instead of the other function.
| Item | Firmware Version 1.0 and Later | Description |
|---|---|---|
| Example: | GW,03 | Query pin function of pin PA10 Response “01” implies Bluetooth® Low Energy status indicator 1/2 |
| Response: | AOK | Success |
Err | Syntax error or invalid parameter |
