Changeset c2011b47 in rtems for bsps/sparc/include


Ignore:
Timestamp:
Feb 21, 2018, 6:23:35 PM (2 years ago)
Author:
Martin Aberg <maberg@…>
Branches:
master
Children:
431661d
Parents:
1a2656cd
git-author:
Martin Aberg <maberg@…> (02/21/18 18:23:35)
git-committer:
Daniel Hellstrom <daniel@…> (09/20/18 10:48:32)
Message:

leon, grspw_pkt: support CCSDS/ISO16 data CRC

When the CCSDS/CCITT CRC-16 and 16-bit ISO-checksum logic is available in
GRSPW2, the DCRCT field is used to determine how to generate the CRC/checksum
code. grspw_hw_sup has been extended with the field ccsds_crc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/sparc/include/bsp/grspw_pkt.h

    r1a2656cd rc2011b47  
    3636
    3737/* Enable Data CRC generation (if CRC is available in HW)
    38  * Data CRC will be appended (one byte at end of packet)
     38 * Data CRC will be appended (one or two byte at end of packet, depending on
     39 * Data CRC type)
    3940 */
    4041#define TXPKT_FLAG_DCRC 0x0200
     42
     43/* Data CRC type */
     44#define TXPKT_FLAG_DCRCT_MASK   0x0c00
     45/* RMAP CRC. 1 byte */
     46#define TXPKT_FLAG_DCRCT_RMAP   0x0000
     47/* CCSDS/CCITT CRC-16. 2 byte */
     48#define TXPKT_FLAG_DCRCT_CCSDS  0x0400
     49/* 16-bit ISO-checksum (J.G. Fletcher, ISO 8473-1:1998). 2 byte */
     50#define TXPKT_FLAG_DCRCT_ISO16  0x0800
    4151
    4252/* Control how many bytes the beginning of the Header
     
    6171
    6272#define TXPKT_FLAG_INPUT_MASK (TXPKT_FLAG_NOCRC_MASK | TXPKT_FLAG_IE | \
    63                                 TXPKT_FLAG_HCRC | TXPKT_FLAG_DCRC)
     73                                TXPKT_FLAG_HCRC | TXPKT_FLAG_DCRC | \
     74                                TXPKT_FLAG_DCRCT_MASK)
    6475
    6576/* Marks if packet was transmitted or not */
     
    177188        char    irq_num;        /* Number of interrupts that can be generated */
    178189        char    itmr_width;     /* SpW Intr. ISR timers bit width. 0=no timer */
     190        char    ccsds_crc;      /* CCSDS CRC-16 and 16-bit ISO is available */
    179191};
    180192
Note: See TracChangeset for help on using the changeset viewer.