From ec59d20bafb3acaaff2bbcab185a074825319e20 Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Mon, 12 Jun 2017 11:17:04 +0200 Subject: Update package * use sub module for ucs2-lib (tmp fork from IoT.bzh github) * add packaging for native build Signed-off-by: Ronan Le Martret --- ...g_p_i_o_ga76f4de37c98b0cdd7cc25a22a9dac8a9.html | 224 --------------------- 1 file changed, 224 deletions(-) delete mode 100644 ucs2-lib/doc/html/group___g___u_c_s___g_p_i_o_ga76f4de37c98b0cdd7cc25a22a9dac8a9.html (limited to 'ucs2-lib/doc/html/group___g___u_c_s___g_p_i_o_ga76f4de37c98b0cdd7cc25a22a9dac8a9.html') diff --git a/ucs2-lib/doc/html/group___g___u_c_s___g_p_i_o_ga76f4de37c98b0cdd7cc25a22a9dac8a9.html b/ucs2-lib/doc/html/group___g___u_c_s___g_p_i_o_ga76f4de37c98b0cdd7cc25a22a9dac8a9.html deleted file mode 100644 index a985286..0000000 --- a/ucs2-lib/doc/html/group___g___u_c_s___g_p_i_o_ga76f4de37c98b0cdd7cc25a22a9dac8a9.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - -UNICENS: Ucs_Gpio_CreatePort - - - - - - - - - - - - - - - -
-
-
- - - - - - - -
Logo -
UNICENS V2.1.0-3491
-
User Manual and API Reference
- -
-
- - - -
-
- -
-
-
- -
- - - - -
- -
- -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ucs_Return_t Ucs_Gpio_CreatePort (Ucs_Inst_tself,
uint16_t destination_address,
uint8_t index,
uint16_t debounce_time,
Ucs_Gpio_CreatePortResCb_t result_fptr 
)
-
- -

Creates the GPIO port with its associated port instance identifier.

- - - -
 This function corresponds with the INIC function INIC.GPIOPortCreate.
-
Parameters
- - - - - - -
selfThe UNICENS instance pointer
destination_addressAddress of the target device. Use the UCS_ADDR_LOCAL_DEV macro to target the local device.
- The following address ranges are supported:
    -
  • [0x10 ... 0x2FF]
  • -
  • [0x500 ... 0xFEF]
  • -
  • UCS_ADDR_LOCAL_DEV
  • -
-
indexThe index of the GPIO Port instance. - - -
 Index
-
debounce_timeThe timeout for the GPIO debounce timer (in ms). - - -
 DebounceTime
-
result_fptrRequired result callback function pointer.
-
-
-
Returns
Possible return values are shown in the table below. - - - - - - - - - - - - -
Value Description
UCS_RET_SUCCESS No error
UCS_RET_ERR_PARAM At least one parameter is wrong
UCS_RET_ERR_BUFFER_OVERFLOW No message buffer available
UCS_RET_ERR_API_LOCKED API is currently locked
UCS_RET_ERR_NOT_INITIALIZED UNICENS is not initialized
-
-


- Example

-
// Main function
-
void main()
-
{
-
Ucs_Return_t result = Ucs_Gpio_CreatePort(UCS_ADDR_LOCAL_DEV, 0x00U, 0x0003U, &App_GpioCreatePortResCb);
-
if (result != UCS_RET_SUCCESS)
-
{
-
// Error handling here
-
}
-
}
-
-
// The GPIO CreatePort event handler function
-
// Handle GpioCreatePort event
-
static void App_GpioCreatePortResCb(uint16_t device_id, uint16_t port_handle, Ucs_Gpio_Result_t result, void * user_ptr)
-
{
-
if (result.code == UCS_GPIO_RES_SUCCESS)
-
{
-
// Store received port handle
-
}
-
else
-
{
-
// Error handling here
-
}
-
}
-
-
-
-
-
- - - - - - -- cgit 1.2.3-korg