OpenCores
URL https://opencores.org/ocsvn/yac/yac/trunk

Subversion Repositories yac

[/] [yac/] [trunk/] [test_sys/] [sw/] [inc/] [msg.h] - Blame information for rev 11

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 11 feddischso
#ifndef _MSG_H_
2
#define _MSG_H_
3
#include <stdint.h>
4
 
5
#define SYNC_BYTE  0x55
6
 
7
#define CMD_NOP     0x00
8
#define CMD_CALC    0x10
9
 
10
 
11
#pragma pack( push, 1 )
12
typedef union _MSG_ {
13
  struct _fields_ {
14
    uint8_t  sync;
15
    uint8_t  header;
16
    uint8_t  mode;
17
    int32_t payload[ 3 ];
18
    uint8_t  crc;
19
  }fields;
20
 
21
  uint8_t bytes[ sizeof( struct _fields_ ) ];
22
 
23
}Msg;
24
#pragma pack( pop )
25
 
26
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.