Hi everybody,
first of all I'd like to say that I am a beginner with python so please be patience. I googled a lot before posting the following question.
I am trying to port a small C code of mine which "talks" to a real-time kernel module to python.
I need an easy way to set up a graphic interface therefore I am using tkinter.
I need to send a C struct to /dev/rtf0:
typedef struct {
enum etype command;
int command_num; /* comando n. */
int freq; /* frequenza fase rampa costante */
unsigned int steps_x; /* step da fare */
unsigned int steps_y;
unsigned int steps_z;
unsigned int steps_a;
unsigned char dir; /* byte con le direzioni x y z a */
} COMMAND_STRUCT;
Could anyone please provide a way or a link to somewhere where I could find some example code for doing such thing (ie defining a python equivalent for struct)?
I would also be grateful for links to sites with practical example of tkinter classes use.
Thanks a lot for any help,
Pier
first of all I'd like to say that I am a beginner with python so please be patience. I googled a lot before posting the following question.
I am trying to port a small C code of mine which "talks" to a real-time kernel module to python.
I need an easy way to set up a graphic interface therefore I am using tkinter.
I need to send a C struct to /dev/rtf0:
typedef struct {
enum etype command;
int command_num; /* comando n. */
int freq; /* frequenza fase rampa costante */
unsigned int steps_x; /* step da fare */
unsigned int steps_y;
unsigned int steps_z;
unsigned int steps_a;
unsigned char dir; /* byte con le direzioni x y z a */
} COMMAND_STRUCT;
Could anyone please provide a way or a link to somewhere where I could find some example code for doing such thing (ie defining a python equivalent for struct)?
I would also be grateful for links to sites with practical example of tkinter classes use.
Thanks a lot for any help,
Pier
Comment