|
|
|
@ -4,13 +4,15 @@ from libcpp.vector cimport vector |
|
|
|
|
from libcpp.string cimport string |
|
|
|
|
from libcpp cimport bool |
|
|
|
|
|
|
|
|
|
cdef struct can_frame: |
|
|
|
|
long address |
|
|
|
|
string dat |
|
|
|
|
long busTime |
|
|
|
|
long src |
|
|
|
|
cdef extern from "panda.h": |
|
|
|
|
cdef struct can_frame: |
|
|
|
|
long address |
|
|
|
|
string dat |
|
|
|
|
long busTime |
|
|
|
|
long src |
|
|
|
|
|
|
|
|
|
cdef extern void can_list_to_can_capnp_cpp(const vector[can_frame] &can_list, string &out, bool sendCan, bool valid) |
|
|
|
|
cdef extern from "can_list_to_can_capnp.cc": |
|
|
|
|
void can_list_to_can_capnp_cpp(const vector[can_frame] &can_list, string &out, bool sendCan, bool valid) |
|
|
|
|
|
|
|
|
|
def can_list_to_can_capnp(can_msgs, msgtype='can', valid=True): |
|
|
|
|
cdef vector[can_frame] can_list |
|
|
|
|