Changes between Version 4 and Version 5 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdSetEvent
- Timestamp:
- 12/13/12 15:28:42 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdSetEvent
v4 v5 5 5 void MnBdSetEvent(int item, MNBD_EVENT_FNC event); 6 6 }}} 7 8 == Parameters == 9 7 == Parameters == 10 8 * item - response item such as MNBD_REQ_GET_WT 11 9 * event - event function that is called when the response is received 12 10 13 11 == Return Value == 14 15 12 This function oes not return any value 16 13 17 14 == Remarks == 18 19 15 The application must have a background event that calls MnBdRead to facilitate this. 20 16 21 17 == Examples == 18 {{{ 19 SetBackgroundEvent(BackgroundEventComm); 22 20 23 {{{24 21 MnBdSetEvent(MNBD_REQ_GET_WT, MnBdEventWtRcv); 22 23 ... 25 24 26 25 MNBD_EVENT(WtRcv) … … 45 44 } 46 45 47 return 0; 46 if(timerReqWeigt.IsExpired() == true) 47 }}} 48 {{{ 49 { 50 }}} 51 {{{ 52 MnBdRequest(1, MNBD_REQ_GET_WT, NO_WAIT_ACK); 53 }}} 54 {{{ 55 } 56 }}} 57 {{{ 58 59 }}} 60 {{{ 61 return 0; 48 62 } 49 63 }}} 50 51 52 64 == See Also == 53 54 65 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdClearEvent MnBdClearEvent] 55 66 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdRead MnBdRead] 56