PmxArdinoLib 1.0.3
読み取り中…
検索中…
一致する文字列を見つけられません
DataConv クラス

クラス

union  Int16Byte
 signed 2byte(short型)のデータをアクセスできるよう共用体にします [詳解]
 
union  Int32Byte
 signed 4byte(long型)のデータをアクセスできるよう共用体にします [詳解]
 
union  Uint16Byte
 unsigned 2byte(short型)のデータをアクセスできるよう共用体にします [詳解]
 
union  Uint32Byte
 unsigned 4byte(long型)のデータをアクセスできるよう共用体にします [詳解]
 

静的公開メンバ関数

static short bytesToInt16 (unsigned char byteDatas[])
 Byte配列データをint16(符号あり2byte)に変換します
 
static unsigned short bytesToUint16 (unsigned char byteDatas[])
 Byte配列データをUint16(符号なし2byte)に変換します
 
static long bytesToInt32 (unsigned char byteDatas[])
 Byte配列データをint32(符号あり4byte)に変換します
 
static unsigned long bytesToUint32 (unsigned char byteDatas[])
 Byte配列データをUint32(符号なし4byte)に変換します
 
static void int16ToBytes (short shortData, unsigned char byteDatas[])
 int16(符号あり2byte)のデータをByte配列に変換します
 
static void uint16ToBytes (unsigned short wordData, unsigned char byteDatas[])
 Uint16(符号なし2byte)のデータをByte配列に変換します
 
static void int32ToBytes (long longData, unsigned char byteDatas[])
 int32(符号あり4byte)のデータをByte配列に変換します
 
static void uint32ToBytes (unsigned long dwordData, unsigned char byteDatas[])
 Uint32(符号なし4byte)のデータをByte配列に変換します
 

関数詳解

◆ bytesToInt16()

short DataConv::bytesToInt16 ( unsigned char byteDatas[])
static

Byte配列データをint16(符号あり2byte)に変換します

引数
[in]byteDatasByte配列データ
戻り値
short 変換後のint16(符号あり2byte)

◆ bytesToInt32()

long DataConv::bytesToInt32 ( unsigned char byteDatas[])
static

Byte配列データをint32(符号あり4byte)に変換します

引数
[in]byteDatasByte配列データ
戻り値
long 変換後のint32(符号あり4byte)

◆ bytesToUint16()

unsigned short DataConv::bytesToUint16 ( unsigned char byteDatas[])
static

Byte配列データをUint16(符号なし2byte)に変換します

引数
[in]byteDatasByte配列データ
戻り値
unsigned short 変換後のUint16(符号なし2byte)

◆ bytesToUint32()

unsigned long DataConv::bytesToUint32 ( unsigned char byteDatas[])
static

Byte配列データをUint32(符号なし4byte)に変換します

引数
[in]byteDatasByte配列データ
戻り値
unsigned long 変換後のUint32(符号なし4byte)

◆ int16ToBytes()

void DataConv::int16ToBytes ( short shortData,
unsigned char byteDatas[] )
static

int16(符号あり2byte)のデータをByte配列に変換します

引数
[in]shortDataint16(符号あり2byte)のデータ
[out]byteDatas変換後のByte配列データ

◆ int32ToBytes()

void DataConv::int32ToBytes ( long longData,
unsigned char byteDatas[] )
static

int32(符号あり4byte)のデータをByte配列に変換します

引数
[in]longDataint32(符号あり4byte)のデータ
[out]byteDatasByte配列データ

◆ uint16ToBytes()

void DataConv::uint16ToBytes ( unsigned short wordData,
unsigned char byteDatas[] )
static

Uint16(符号なし2byte)のデータをByte配列に変換します

引数
[in]wordDataUint16(符号なし2byte)のデータ
[out]byteDatasByte配列データ

◆ uint32ToBytes()

void DataConv::uint32ToBytes ( unsigned long dwordData,
unsigned char byteDatas[] )
static

Uint32(符号なし4byte)のデータをByte配列に変換します

引数
[in]dwordDataUint32(符号なし4byte)のデータ
[out]byteDatasByte配列データ

このクラス詳解は次のファイルから抽出されました: