I have a question about setting up accessbits 1kb mifare cards.(i use arduino and MFRC522)
as you can see in the below picture, I wrote the value of each of the blocks
C10=0 ,C20=1 ,C30=1 >>>block 0
C11=0 ,C21=1 ,C31=1 >>>block 1
C12=0 ,C22=1 ,C32=1 >>>block 2
C13=1 ,C23=1 ,C33=1 >>>block 3 (Trailer)
byte6 = 0b00000111 >>hex= 0x07 >>byte= 7
byte7 = 0b10000000 >>hex= 0x80 >>byte= 128
byte8 = 0b11111111 >>hex= 0xFF >>byte= 255
now i want to setup this function in MFRC522 library Arduino:
byte trailerBuffer[] = {
255 ,255 ,255 ,255 ,255 ,255, // Keep default key A
7, 128, 255,
0,
255 ,255 ,255 ,255 ,255 ,255 // Keep default key B
};
mfrc522.MIFARE_SetAccessBits(&trailerBuffer[6], g0, g1, g2, g3);
what are the values of (g0, g1, g2, g3) for these blocks?
Thanks for your attention