Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added Callback Data

...

  • GOAL_MB_CB_ID_APPL_READY application setup done

  • GOAL_MB_CB_ID_DATA_READ data to read

  • GOAL_MB_CB_ID_DATA_WRITE data to write

  • GOAL_MB_CB_ID_CONNECT_REQUEST connection established

  • GOAL_MB_CB_ID_CONNECT_RELEASE connection released

  • GOAL_MB_CB_ID_LED_CHANGED LEDs changed

The passed callback data contains ID specific data, for accessing objects:

  • GOAL_MB_CB_ID_DATA_READ

    • pCb->data[0].dataType: containing data type, like GOAL_MB_DATA_COIL

    • pCb->data[1].index: index of object

    • pCb->data[2].value: returned value of object

    • pCb->data[3].flgValid: use value set by the application

  • GOAL_MB_CB_ID_DATA_WRITE

    • pCb->data[0].dataType: containing data type, like GOAL_MB_DATA_DISC_INPUT

    • pCb->data[1].index: index of object

    • pCb->data[2].value: returned value of object

    • pCb->data[3].flgValid: application does support this object