所以我在c中有下面的方法
rx_data_t readBuffer(HANDLE connection)
{
rx_data_t buffer[512];
_read_receiver_buffer(connection, &buffer[0]);
return buffer;
}
结果是从读取接收器缓冲区返回的,我可以遍历缓冲区,没有问题。你知道吗
但是,我很难使用ctypes库将结果返回给Python。你知道吗
rx_data_t是指向具有以下布局的结构数组的指针:
{
unsigned long receive_time;
unsigned short low;
unsigned short high;
} rx_data_t;
目前没有回答
相关问题 更多 >
编程相关推荐