Changes between Version 4 and Version 5 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdSetEvent


Ignore:
Timestamp:
12/13/12 15:28:42 (12 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdSetEvent

    v4 v5  
    55void MnBdSetEvent(int item, MNBD_EVENT_FNC event);
    66}}}
    7 
    8 == Parameters ==
    9 
     7== Parameters ==
    108 * item - response item such as MNBD_REQ_GET_WT
    119 * event - event function that is called when the response is received
    1210
    1311== Return Value ==
    14 
    1512This function oes not return any value
    1613
    1714== Remarks ==
    18 
    1915The application must have a background event that calls MnBdRead to facilitate this.
    2016
    2117== Examples ==
     18{{{
     19SetBackgroundEvent(BackgroundEventComm);
    2220
    23 {{{
    2421MnBdSetEvent(MNBD_REQ_GET_WT, MnBdEventWtRcv);
     22
     23...
    2524
    2625MNBD_EVENT(WtRcv)
     
    4544        }
    4645
    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{{{
     61return 0;
    4862}
    4963}}}
    50 
    51 
    5264== See Also ==
    53 
    5465 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdClearEvent MnBdClearEvent]
    5566 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdRead MnBdRead]
    56