CMD_PACKET Union

Microchip MDD File System Interface

MDDFS Interface Library Help
CMD_PACKET Union
C
typedef union {
  struct {
    BYTE field[7];
  }
  struct {
    BYTE crc;
    BYTE c30filler;
    BYTE c32filler[3];
    BYTE addr0;
    BYTE addr1;
    BYTE addr2;
    BYTE addr3;
    BYTE cmd;
  }
  struct {
    BYTE END_BIT : 1;
    BYTE CRC7 : 7;
    DWORD address;
    BYTE CMD_INDEX : 6;
    BYTE TRANSMIT_BIT : 1;
    BYTE START_BIT : 1;
  }
} CMD_PACKET;
Description

This union represents different ways to access an SD card command packet

Members
Members 
Description 
BYTE field[7]; 
BYTE array 
BYTE crc; 
The CRC byte 
BYTE c30filler; 
Filler space (since bitwise declarations can't cross a WORD boundary) 
BYTE c32filler[3]; 
Filler space (since bitwise declarations can't cross a DWORD boundary) 
BYTE addr0; 
Address byte 0 
BYTE addr1; 
Address byte 1 
BYTE addr2; 
Address byte 2 
BYTE addr3; 
Address byte 3 
BYTE cmd; 
Command code byte 
BYTE END_BIT : 1; 
Packet end bit 
BYTE CRC7 : 7; 
CRC value 
DWORD address; 
Address 
BYTE CMD_INDEX : 6; 
Command code 
BYTE TRANSMIT_BIT : 1; 
Transmit bit 
BYTE START_BIT : 1; 
Packet start bit 
Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.