@@ -117,6 +117,17 @@ class PICO_SCALING_FACTORS(Structure):
117117
118118picoStruct .PICO_SCALING_FACTORS = PICO_SCALING_FACTORS
119119
120+ class PICO_SCALING_FACTORS_FOR_RANGE_TYPES (Structure ):
121+ _pack_ = 1
122+ _fields_ = [("channel" , c_uint32 ),
123+ ("rangeMin" , c_int64 ),
124+ ("rangeMax" , c_int64 ),
125+ ("rangeType" , c_uint32 ),
126+ ("offset" , c_int16 ),
127+ ("scalingFactor" , c_double )]
128+
129+ picoStruct .PICO_SCALING_FACTORS_FOR_RANGE_TYPES = PICO_SCALING_FACTORS_FOR_RANGE_TYPES
130+
120131class PROBE_APP (Structure ):
121132 _pack_ = 1
122133 _fields_ = [("id" , c_int32 ),
@@ -141,4 +152,32 @@ class PICO_DIGITAL_PORT_INTERACTIONS(Structure):
141152 ("serial" , c_int8 ),
142153 ("calibrationDate" , c_int8 )]
143154
144- picoStruct .PICO_DIGITAL_PORT_INTERACTIONS = PICO_DIGITAL_PORT_INTERACTIONS
155+ picoStruct .PICO_DIGITAL_PORT_INTERACTIONS = PICO_DIGITAL_PORT_INTERACTIONS
156+
157+ class PICO_CHANNEL_OVERVOLTAGE_TRIPPED (Structure ):
158+ _pack_ = 1
159+ _fields_ = [("channel" , c_uint32 ),
160+ ("tripped" , c_uint8 )]
161+
162+ picoStruct .PICO_CHANNEL_OVERVOLTAGE_TRIPPED = PICO_CHANNEL_OVERVOLTAGE_TRIPPED
163+
164+ class PICO_USB_POWER_DELIVERY (Structure ):
165+ _pack_ = 1
166+ _fields_ = [("valid" , c_uint8 ),
167+ ("busVoltagemV" , c_uint32 ),
168+ ("rpCurrentLimitmA" , c_uint32 ),
169+ ("partnerConnected" , c_uint8 ),
170+ ("ccPolarity" , c_uint8 ),
171+ ("attachedDevice" , c_uint32 ),
172+ ("contractExists" , c_uint8 ),
173+ ("currentPdo" , c_uint32 ),
174+ ("currentRdo" , c_uint32 )]
175+
176+ picoStruct .PICO_USB_POWER_DELIVERY = PICO_USB_POWER_DELIVERY
177+
178+ class PICO_USB_POWER_DETAILS (Structure ):
179+ _pack_ = 1
180+ _fields_ = [("dataPort" , c_uint32 ),
181+ ("powerPort" , c_uint32 )]
182+
183+ picoStruct .PICO_USB_POWER_DETAILS = PICO_USB_POWER_DETAILS
0 commit comments