5.2.22 Get Pin Function (GW,<hex8>)
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-5. The input parameter is an 8-bit hex representing the pin index, as indicated in Table 5-4. 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.
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 |