70 unsigned short confSize = 0;
71 unsigned char chunkLimit = TablesB.SmallTablesB.loggingSettings.firstChunk + TablesB.SmallTablesB.loggingSettings.numberOfChunks;
73 for(chunks=TablesB.SmallTablesB.loggingSettings.firstChunk;chunks<chunkLimit;chunks++){
74 unsigned short localSize = TablesB.SmallTablesB.loggingSettings.logChunks[chunks].size;
75 confSize += localSize;
77 confSize -= localSize;
219 if(RXPacketLengthReceived < 4){
228 unsigned char RXCalculatedChecksum =
checksum((
unsigned char*)&RXBuffer, RXPacketLengthReceived - 1);
229 if(RXCalculatedChecksum != RXReceivedChecksum){
267 || ((
RXHeaderFlags & HEADER_HAS_LENGTH) && (RXPacketLengthReceived < 6))
298 void* leftOverBuffer = (
void*)((
unsigned short)&RXBuffer + RXPacketLengthReceived);
300 unsigned short errorID = 0;
403 unsigned short zeroCounter;
404 unsigned char* counterPointer;
406 counterPointer = (
unsigned char*) &
Counters;
407 for(zeroCounter = 0;zeroCounter <
sizeof(
Counter);zeroCounter++){
413 counterPointer = (
unsigned char*) &
Flaggables;
414 for(zeroCounter = 0;zeroCounter <
sizeof(
Flaggable);zeroCounter++){
421 for(zeroCounter = 0;zeroCounter <
sizeof(
Flaggable2);zeroCounter++){
439 unsigned char* stringToSend = 0;
510 if((size == 0) || (offset > (details.
size - 1)) || (size > (details.
size - offset))){
522 unsigned char oldRamPage =
RPAGE;
532 if(size != details.
size){
539 bufferToCheck = leftOverBuffer;
609 if((size == 0) || (offset > (details.
size - 1)) || (size > (details.
size - offset))){
626 if(size != details.
size){
628 unsigned char oldFlashPage =
PPAGE;
635 PPAGE = oldFlashPage;
640 bufferToCheck = leftOverBuffer;
664 burnDetails.
size = size;
667 errorID =
writeBlock(&burnDetails, leftOverBuffer);
675 unsigned char oldRamPage =
RPAGE;
724 if((size == 0) && (offset == 0)){
729 if((size == 0) || (offset > (details.
size - 1)) || (size > (details.
size - offset))){
746 unsigned char oldRamPage =
RPAGE;
787 if((size == 0) && (offset == 0)){
792 if((size == 0) || (offset > (details.
size - 1)) || (size > (details.
size - offset))){
809 unsigned char oldFlashPage =
PPAGE;
817 PPAGE = oldFlashPage;
851 if((size == 0) && (offset == 0)){
856 if((size == 0) || (offset > (details.
size - 1)) || (size > (details.
size - offset))){
874 errorID =
writeBlock(&details, leftOverBuffer);
906 TablesB.SmallTablesB.loggingSettings.datalogStreamType = newDatalogType;
927 if(((
unsigned short)address) <= ((0xFFFF - length) + 1)){
993 unsigned long locationID;
995 for(locationID = 0;locationID < 65536;locationID++){
996 unsigned short locationIDDoesntExist;
999 if(!locationIDDoesntExist){
1000 if((listType == 0x00) ||
1001 ((listType == 0x01) && (details.
flags & blockDetailsMask)) ||
1002 ((listType == 0x02) && (!(~(details.
flags) & blockDetailsMask)))){
1004 TXBufferCurrentPositionHandler += 2;
1181 if(bumpCycles == 0){
1249 unsigned char channel;
1250 unsigned char configuredChannels = 6;
1251 for(channel = 0;channel < 6;channel++){
1257 }
else if(testPulseWidths[channel] > 3){
1262 }
else if(testPulseWidths[channel] == 3){
1265 }
else if(testPulseWidths[channel] == 2){
1270 }
else if(testPulseWidths[channel] == 1){
1278 configuredChannels--;
1282 if(configuredChannels == 0){