lkml.org 
[lkml]   [2021]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v9] USB: serial: cp210x: Add support for GPIOs on CP2108
On Thu, Apr 29, 2021 at 02:54:09AM +0000, Tung Pham wrote:

> So my questions again are:
>
> 1) Have you verified that the struct cp210x_quad_port_config above
> actually matches what the device uses?
>
> 2) Do you have any documentation of the structures as expected by the
> device firmware (not your library)?
>
>
> Tung Pham: the device return some unused bytes, and manufacturing
> library already discard these byte to assign value to PORT_CONFIG, so
> you don't see padding byte on PORT_CONFIG structure. you can find
> the structure of port setting in this code:
>
> https://www.silabs.com/documents/public/software/USBXpressHostSDK-Linux.tar
>
>
> \USBXpressHostSDK-Linux\USBXpressHostSDK\CP210x\srcpkg\cp210xmanufacturing_1.0.tar\cp210xmanufacturing_1.0\cp210xmanufacturing\cp210xmanufacturing\src\CP2104Device.cpp
>
> CP210x_STATUS CCP2104Device::GetPortConfig(PORT_CONFIG* PortConfig)

Thanks for confirming.

Johan

\
 
 \ /
  Last update: 2021-04-29 08:55    [W:0.386 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site