Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed_LPS25H GR-PEACH_TAMORI
typedef.h
- Committer:
- yasuyuki
- Date:
- 2014-10-12
- Revision:
- 0:0d2babe81a04
File content as of revision 0:0d2babe81a04:
//**********************
// typedef for mbed
//
// Condition:
//
// (C)Copyright 2014 All rights reserved by Y.Onodera
// http://einstlab.web.fc2.com
//**********************
#ifndef TYPEDEF_H
#define TYPEDEF_H
typedef unsigned char BYTE; /* 8-bit unsigned */
typedef unsigned short int WORD; /* 16-bit unsigned */
typedef unsigned int DWORD; /* 32-bit unsigned */
typedef unsigned long long QWORD; /* 64-bit unsigned */
typedef union
{
WORD Val;
BYTE v[2];
short S;
struct
{
BYTE LB;
BYTE HB;
} byte;
} WORD_VAL;
typedef union
{
DWORD Val;
WORD w[2];
BYTE v[4];
struct
{
WORD LW;
WORD HW;
} word;
struct
{
BYTE LB;
BYTE HB;
BYTE UB;
BYTE MB;
} byte;
struct
{
WORD_VAL low;
WORD_VAL high;
}wordUnion;
} DWORD_VAL;
#endif /* TYPEDEF_H */