¡@

Home 

python Programming Glossary: smbus_handle

Python & Ctypes: Passing a struct to a function as a pointer to get back data

http://stackoverflow.com/questions/4351721/python-ctypes-passing-a-struct-to-a-function-as-a-pointer-to-get-back-data

struct takes it as a pointer SMBUS_API int SmBusReadByte SMBUS_HANDLE handle SMB_REQUEST request So I've set up the struct in Python.. file for the DLL declares the following typedef void SMBUS_HANDLE This function call initializes the SMBus opens the driver and.. making this call except to re open the SMBus. SMBUS_API SMBUS_HANDLE OpenSmbus void So here's how I'm doing this in python smbus_handle..