PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
peb_eescan.c
1 #include "simpletools.h"
2 #include "badgetools.h"
3 
4 int i2cLock;
5 volatile int eei2cLock;
6 volatile int eei2cLockFlag;
7 volatile int eeRecCount, eeNextAddr, eeBadgeOk,
8  eeNext, eeRecsAddr, eeRecs,
9  eeRecHome, eeRecOffice;
10 volatile int eeHome;
11 
12 int eescan(int recIdx, const char *fmt, ...)
13 {
14  char str[128];
15  memset(str, 0, 128);
16  retrieve(str, recIdx);
17  //ir_receive(str, 256);
18  va_list args;
19  va_start(args, fmt);
20  int blocks = _doscanf_ct(str, fmt, args);
21  va_end(args);
22  return blocks;
23 }
24 
25 /*
26  TERMS OF USE: MIT License
27 
28  Permission is hereby granted, free of charge, to any person obtaining a
29  copy of this software and associated documentation files (the "Software"),
30  to deal in the Software without restriction, including without limitation
31  the rights to use, copy, modify, merge, publish, distribute, sublicense,
32  and/or sell copies of the Software, and to permit persons to whom the
33  Software is furnished to do so, subject to the following conditions:
34 
35  The above copyright notice and this permission notice shall be included in
36  all copies or substantial portions of the Software.
37 
38  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
39  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
41  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
42  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
44  DEALINGS IN THE SOFTWARE.
45 */
46 
eescan
int eescan(int recIdx, const char *fmt,...)
Use to retrieve strings to EEPROM in a manner similar to retrieving strings that represent combinatio...
Definition: peb_eescan.c:12
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
retrieve
void retrieve(char *contact, int recIdx)
Copy string with a certain index number from EEPROM to a character array.
Definition: peb_retrieve.c:12
badgetools.h
This library provides convenient functions for a variety of Parallax eBadge operations.