Lines Matching refs:Buffer

87  NFCSTATUS phFriNfc_NdefRecord_GetRecords(  uint8_t     *Buffer,  in phFriNfc_NdefRecord_GetRecords()  argument
105 if (Buffer == NULL || BufferLength == 0 || NumberOfRawRecords == NULL) in phFriNfc_NdefRecord_GetRecords()
135 if ((*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_MB) != in phFriNfc_NdefRecord_GetRecords()
148 if ((*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) == in phFriNfc_NdefRecord_GetRecords()
160 if ((*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_MB) == PH_FRINFC_NDEFRECORD_FLAGS_MB && in phFriNfc_NdefRecord_GetRecords()
161 (*Buffer & PH_FRINFC_NDEFRECORD_TNF_UNCHANGED) == PH_FRINFC_NDEFRECORD_TNF_UNCHANGED) in phFriNfc_NdefRecord_GetRecords()
171 if ( (*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_MB) == PH_FRINFC_NDEFRECORD_FLAGS_MB && in phFriNfc_NdefRecord_GetRecords()
172 (*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) != PH_FRINFC_NDEFRECORD_TNF_UNKNOWN && in phFriNfc_NdefRecord_GetRecords()
173 (*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) != PH_FRINFC_NDEFRECORD_TNF_EMPTY && in phFriNfc_NdefRecord_GetRecords()
174 *(Buffer + 1) == 0) in phFriNfc_NdefRecord_GetRecords()
186 if (Buffer == NULL) in phFriNfc_NdefRecord_GetRecords()
193 if ((*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_CF) == in phFriNfc_NdefRecord_GetRecords()
195 (*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_ME) == in phFriNfc_NdefRecord_GetRecords()
215 if((Buffer != NULL)&&(RawRecords!=NULL))/*QMOR FIX*/ in phFriNfc_NdefRecord_GetRecords()
217 RawRecords[Count] = Buffer; in phFriNfc_NdefRecord_GetRecords()
229 Status = phFriNfc_NdefRecord_RecordIDCheck ( Buffer, in phFriNfc_NdefRecord_GetRecords()
246 if ((*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_CF) == in phFriNfc_NdefRecord_GetRecords()
262 if(((*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_CF) == PH_FRINFC_NDEFRECORD_FLAGS_CF && in phFriNfc_NdefRecord_GetRecords()
263 (*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_IL) == PH_FRINFC_NDEFRECORD_FLAGS_IL && in phFriNfc_NdefRecord_GetRecords()
264 … (*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) == PH_FRINFC_NDEFRECORD_TNF_UNCHANGED) || in phFriNfc_NdefRecord_GetRecords()
265 (*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_MB) == PH_FRINFC_NDEFRECORD_FLAGS_MB) in phFriNfc_NdefRecord_GetRecords()
283 (*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) != in phFriNfc_NdefRecord_GetRecords()
295 (*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) == in phFriNfc_NdefRecord_GetRecords()
329 if ((*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_ME) == in phFriNfc_NdefRecord_GetRecords()
358 if ((*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_ME) == in phFriNfc_NdefRecord_GetRecords()
366 Buffer = (Buffer + PayloadLengthByte + IDLengthByte + TypeLength in phFriNfc_NdefRecord_GetRecords()
549 uint8_t *Buffer, in phFriNfc_NdefRecord_Generate() argument
559 if(Record==NULL ||Buffer==NULL||BytesWritten==NULL||MaxBufferSize == 0) in phFriNfc_NdefRecord_Generate()
579 …*Buffer = ( (Record->Flags & PH_FRINFC_NDEFRECORD_FLAG_MASK) | (Record->Tnf & PH_FRINFC_NDEFRECORD… in phFriNfc_NdefRecord_Generate()
580 Buffer++; in phFriNfc_NdefRecord_Generate()
589 *Buffer=PH_FRINFC_NDEFRECORD_BUF_TNF_VALUE; in phFriNfc_NdefRecord_Generate()
590 Buffer++; in phFriNfc_NdefRecord_Generate()
608 *Buffer = PH_FRINFC_NDEFRECORD_BUF_TNF_VALUE; in phFriNfc_NdefRecord_Generate()
609 Buffer++; in phFriNfc_NdefRecord_Generate()
613 *Buffer = Record->TypeLength; in phFriNfc_NdefRecord_Generate()
614 Buffer++; in phFriNfc_NdefRecord_Generate()
622 *Buffer = (uint8_t)(Record->PayloadLength & 0x000000ff); in phFriNfc_NdefRecord_Generate()
623 Buffer++; in phFriNfc_NdefRecord_Generate()
628 *Buffer = (uint8_t)((Record->PayloadLength & 0xff000000) >> PHNFCSTSHL24); in phFriNfc_NdefRecord_Generate()
629 Buffer++; in phFriNfc_NdefRecord_Generate()
630 *Buffer = (uint8_t)((Record->PayloadLength & 0x00ff0000) >> PHNFCSTSHL16); in phFriNfc_NdefRecord_Generate()
631 Buffer++; in phFriNfc_NdefRecord_Generate()
632 *Buffer = (uint8_t)((Record->PayloadLength & 0x0000ff00) >> PHNFCSTSHL8); in phFriNfc_NdefRecord_Generate()
633 Buffer++; in phFriNfc_NdefRecord_Generate()
634 *Buffer = (uint8_t)((Record->PayloadLength & 0x000000ff)); in phFriNfc_NdefRecord_Generate()
635 Buffer++; in phFriNfc_NdefRecord_Generate()
642 *Buffer=Record->IdLength; in phFriNfc_NdefRecord_Generate()
643 Buffer++; in phFriNfc_NdefRecord_Generate()
652 *Buffer = *temp; in phFriNfc_NdefRecord_Generate()
653 Buffer++; in phFriNfc_NdefRecord_Generate()
665 *Buffer = *temp; in phFriNfc_NdefRecord_Generate()
666 Buffer++; in phFriNfc_NdefRecord_Generate()
676 *Buffer = *temp; in phFriNfc_NdefRecord_Generate()
677 Buffer++; in phFriNfc_NdefRecord_Generate()