Forums - GPIO functions

2 posts / 0 new
Last post
GPIO functions
siddhant
Join Date: 22 Oct 20
Posts: 1
Posted: Wed, 2020-11-04 13:00
QCLI_Command_Status_t gpio_tlmm(uint32_t Parameter_Count, QCLI_Parameter_t *Parameter_List)
{
    if (Parameter_Count < 4)
    {
        QCLI_Printf(qcli_gpio_group, "USAGE: gpio_pin fun dir pull val\n");
        QCLI_Printf(qcli_gpio_group, "\r gpio_pin -> pin number \n\r fun -> function value (0-15) \
                                      \n\r dir -> direction(input/ output) 0-input 1-output");
        QCLI_Printf(qcli_gpio_group, "\n\r pull -> gpio pull up/down/no-pull 0-No pull 1-Pull Down 2-Pull Up \
                                      \n\r val(value to drive if direction is output)");
        return QCLI_STATUS_SUCCESS_E;
    }
 
    gpio_io_handle(Parameter_Count, Parameter_List);
 
    return QCLI_STATUS_SUCCESS_E;
}
This function is defined in the GPIO demo file in QCL_demo project. Can you help me with the function value which expects a integer between 0 -15. I can't seem to find references to it nowhere in QAPI documentation or the programmer's guide. What are these functions for GPIO?
  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Mon, 2020-11-09 13:47

Kindly refer to Section A.13 GPIO function configuration from document QCA402x Programmer's Guide 80-Y9381-2 for GPIO function values.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.