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


Ignore:
Timestamp:
12/13/12 15:31:11 (12 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v5 v6  
    1717== Examples ==
    1818{{{
    19 SetBackgroundEvent(BackgroundEventComm);
     19...
     20   SetBackgroundEvent(BackgroundEventComm);
    2021
    21 MnBdSetEvent(MNBD_REQ_GET_WT, MnBdEventWtRcv);
     22   MnBdSetEvent(MNBD_REQ_GET_WT, MnBdEventWtRcv);
    2223
    2324...
     
    3435BACKGROUND_EVENT(Comm)
    3536{
    36         // Use MnBdRead directly to prevent overhead of MnBdProcess
     37   // Use MnBdRead directly to prevent overhead of MnBdProcess
    3738
    38         int n;
    39         // in case we have more I/O cards than scales change this
    40         for(n = 0; n <= GetNumScales(); n++)
    41         {
    42                 // 0 = MNBD_DEV, 1 .. Scales and I/O cards
    43                 MnBdRead(n);
    44         }
     39   int n;
     40   // in case we have more I/O cards than scales change this
     41   for(n = 0; n <= GetNumScales(); n++)
     42   {
     43      // 0 = MNBD_DEV, 1 .. Scales and I/O cards
     44      MnBdRead(n);
     45   }
    4546
    4647   if(timerReqWeigt.IsExpired() == true)
    47 }}}
    48 {{{
    4948   {
    50 }}}
    51 {{{
    5249      MnBdRequest(1, MNBD_REQ_GET_WT, NO_WAIT_ACK);
    53 }}}
    54 {{{
    5550   }
    56 }}}
    57 {{{
    58 
    59 }}}
    60 {{{
    61 return 0;
     51   return 0;
    6252}
    6353}}}