Announcement

Collapse
No announcement yet.

can't use IO_CP_GPIO_DIRECTION command

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • can't use IO_CP_GPIO_DIRECTION command

    Hi,
    it's my first post in the forum, it's the first time that I use a Lantronix product
    and I need some help.

    as mentioned in the title, I can not use the IO_CP_GPIO_DIRECTION from the cpm_ioctl,
    this command gives me an error ( bad address) when I use it to set the direction of the CPs.

    I just want to mention, that the other commands from cpm_ioctl are working for me,

    Code:
     case IO_CP_GPIO_DIRECTION:
                if (mask == 0)
                {
                    ret = drv->device->state.direction;
                }
                else
                {
                    ret = cpm_cp_direction(drv->device, mask, value);
                }
                break;
    please help me
    belhaj.
Working...
X