Пример #1
0
void comm__binary__0__broadcast(void) {
    notifications_pending__comm__binary__0__set(0);
    mcp251x_message_id *id = &kernel__frame.header.id;
    UCAN_SET_DST(*id, UCAN_DST);
    UCAN_SET_VALUE_OBJID(*id, 0);
    UCAN_SET_PORT(*id, UCAN__PID__COMM__BINARY);
    kernel__send_response(1, &siren1__state);
}
Пример #2
0
void emergency__water_sensors__0__broadcast(void) {
    notifications_pending__emergency__water_sensors__0__set(0);
    mcp251x_message_id *id = &kernel__frame.header.id;
    UCAN_SET_DST(*id, UCAN_DST);
    UCAN_SET_VALUE_OBJID(*id, 1);
    UCAN_SET_PORT(*id, UCAN__PID__EMERGENCY__WATER_SENSORS);
    kernel__send_response(1, &water_leak_sensors_scanner__status.state);
}