Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions can/interfaces/systec/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class CanMsg(Structure):
"""

_pack_ = 1
_layout_ = "ms"
_fields_ = [
("m_dwID", DWORD), # CAN Identifier
("m_bFF", BYTE), # CAN Frame Format (see enum :class:`MsgFrameFormat`)
Expand Down Expand Up @@ -113,6 +114,7 @@ class Status(Structure):
"""

_pack_ = 1
_layout_ = "ms"
_fields_ = [
("m_wCanStatus", WORD), # CAN error status (see enum :class:`CanStatus`)
("m_wUsbStatus", WORD), # USB error status (see enum :class:`UsbStatus`)
Expand Down Expand Up @@ -144,6 +146,7 @@ class InitCanParam(Structure):
"""

_pack_ = 1
_layout_ = "ms"
_fields_ = [
("m_dwSize", DWORD), # size of this structure (only used internally)
(
Expand Down Expand Up @@ -266,6 +269,7 @@ class HardwareInfoEx(Structure):
"""

_pack_ = 1
_layout_ = "ms"
_fields_ = [
("m_dwSize", DWORD), # size of this structure (only used internally)
("m_UcanHandle", Handle), # USB-CAN-Handle assigned by the DLL
Expand Down Expand Up @@ -343,6 +347,7 @@ class HardwareInitInfo(Structure):
"""

_pack_ = 1
_layout_ = "ms"
_fields_ = [
("m_dwSize", DWORD), # size of this structure
(
Expand All @@ -368,6 +373,7 @@ class ChannelInfo(Structure):
"""

_pack_ = 1
_layout_ = "ms"
_fields_ = [
("m_dwSize", DWORD), # size of this structure
("m_bMode", BYTE), # operation mode of CAN controller (see enum :class:`Mode`)
Expand Down
1 change: 1 addition & 0 deletions can/interfaces/vector/xlclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ class XLbusParams(ctypes.Structure):

class XLchannelConfig(ctypes.Structure):
_pack_ = 1
_layout_ = "ms"
_fields_ = [
("name", ctypes.c_char * 32),
("hwType", ctypes.c_ubyte),
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/2162.fixed.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed the Python 3.14 ``DeprecationWarning`` about ``_pack_`` without ``_layout_`` in the ctypes structures of the SYSTEC and Vector interfaces.
Loading