Skip to content

Commit

Permalink
add to cython
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Jun 30, 2022
1 parent e633a8b commit e6d0036
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions can/common.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ from libcpp.vector cimport vector
from libcpp.unordered_set cimport unordered_set


ctypedef unsigned int (*calc_checksum_type)(uint32_t, const Signal&, const vector[uint8_t] &)

cdef extern from "common_dbc.h":
ctypedef enum SignalType:
DEFAULT,
Expand All @@ -31,6 +33,7 @@ cdef extern from "common_dbc.h":
double factor, offset
bool is_little_endian
SignalType type
calc_checksum_type calc_checksum

cdef struct Msg:
string name
Expand Down

0 comments on commit e6d0036

Please sign in to comment.