필터 지우기
필터 지우기

how to call external function with a pointer argument in legacy_code

조회 수: 2 (최근 30일)
xian zhao
xian zhao 2018년 3월 28일
There is a function can_transmit(long ID,usigned char DataArray) used as a MSCAN driver of my device. I want to generate a S-Function by legacy_code and call this function in the generated code. However, I don't know how to pass the address of my data into can_transmit function. I tried the array, however the generated code will use real_T type, and it's reported impossible to convert the real_T* to usigned char.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Texas Instruments C2000 Processors에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!