This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

XIO2001EVM: How to control the GPIO pins

Part Number: XIO2001EVM
Other Parts Discussed in Thread: XIO2001

We're trying to control the GPIO pins on the XIO2001EVM board.  From what we understand so far, we need to write a kernel mode driver to control those.  We don't have any driver development experience, so we're finding it a bit challenging.  We think we need to use SetBusData of BUS_INTERFACE_STANDARD as described here, but we're still unclear whether it needs to be part of the device driver stack, how to insert our driver into that stack, and how to expose some user mode functions to expose control over the memory offsets.

Would anyone happen to have a more complete example of how to control these to help shorten our development time?

  • Hello Eric,

    As noted on the XIO2001 datasheet, the GPIOs on the device are controlled by the GPIO control and GPIO data registers which are mapped into the device's PCI memory space.
    The link you provided is a good start point, unfortunately we have no code examples to provide on that implementation.
    MSDN provides multiple WDK examples on how to create a PCI/PCIe device driver.

    Regards,
    Jorge