Lines Matching full:description
11 - Obtaining or releasing a pin description handle
59 | **API** | **Description** |
61 | DevHandle PinGet(const char *pinName) | Obtains a pin description handle.|
62 | void PinPut(DevHandle handle) | Releases the pin description handle…
81 #### Obtaining a Pin Description Handle
83 Before performing an operation on a pin, use **PinGet()** to obtain the pin description handle base…
89 **Table 2** Description of PinGet
91 | Parameter | Description |
94 | **Return Value**| **Description** |
96 | handle | The operation is successful. The pin description handle obtained is returned. …
98 Example: Obtain the pin description handle of P18.
101 DevHandle handle = NULL; // Pin description handle.
119 **Table 3** Description of PinSetPull
121 | Parameter | Description |
123 | handle | Pin description handle. |
125 | **Return Value**| **Description** |
152 **Table 4** Description of PinGetPull
154 | Parameter | Description |
156 | handle | Pin description handle. |
158 | **Return Value**| **Description** |
184 **Table 5** Description of PinSetStrength
186 | Parameter | Description |
188 | handle | Pin description handle. |
190 | **Return Value**| **Description** |
216 **Table 6** Description of PinGetStrength
218 | Parameter | Description |
220 | handle | Pin description handle. |
222 | **Return Value**| **Description** |
250 **Table 7** Description of PinSetFunc
252 | Parameter | Description |
254 | handle | Pin description handle. |
256 | **Return Value**| **Description** |
282 **Table 8** Description of PinGetFunc
284 | Parameter | Description |
286 | handle | Pin description handle. |
288 | **Return Value**| **Description** |
306 #### Releasing a Pin Description Handle
308 After the operations on a pin are complete, use **PinPut()** to release the pin description handle.
314 **Table 9** Description of PinPut
316 | Parameter | Description |
318 | handle | Pin description handle. |
319 | **Return Value**| **Description**|
322 Example: Release a pin description handle.
332 1. Pass in the pin name to obtain the pin description handle.
333 2. Set the pull type of the pin. If the operation fails, release the pin description handle.
334 3. Obtain the pull type of the pin. If the operation fails, release the pin description handle.
335 4. Set the pull strength of the pin. If the operation fails, release the pin description handle.
336 5. Obtain the pin pull strength. If the operation fails, release the pin description handle.
337 5. Set the pin function. If the operation fails, release the pin description handle.
338 6. Obtain the pin function. If the operation fails, release the pin description handle.
339 7. Release the pin description handle if no operation needs to be performed on the pin.
356 /* Obtain the pin description handle. */
402 /* Release the pin description handle. */