필터 지우기
필터 지우기

Simulink.Bus objects as unions

조회 수: 2 (최근 30일)
Allen Brock
Allen Brock 2015년 11월 13일
Is it possible to use Simulink.Bus objects with internal unions as in C code? The purpose would be to simplify stateflow code which needs to turn on/off multiple outputs without having to explicitly state each individual item.
Struct/union example:
struct {
uint8_t leds;
union {
led0:1;
led1:1;
led2:1;
led3:1;
led4:1;
led5:1;
led6:1;
led7:1;
}
}

답변 (0개)

카테고리

Help CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by