defining ctype equivalent structure in python
<p>I have a struct within a struct in the define.h file in this way:</p>

<pre><code>typedef struct
{
 byte iVersion;
 long iMTPL;
 byte iMPR;
 byte iTempCompIndex;
 byte iTempCompRemainder;

} Message_Tx_Datapath;

typedef struct
{
 byte               iNumTxPaths;
 Message_Tx_Datapath datapath[NUM_TX_PATHS];
 } Message_Tx;
</code></pre>

<p>And I want to define an equivalent structure using ctypes in python for this so that when I use the dll I can pass this structure to fetch data in python.</p>

<p>How can I define this in python. I know how to define a single level struct but this is a struct within a struct and I'm not sure how I can define that. Please help.</p>

<p>Here's how I've started my code:</p>

<pre><code>class Message_Tx(ctypes.Structure):
   _fields_ = [("iNumTxPaths",c_byte),("datapath",????)]
</code></pre>
