ホーム › NetworkManagement.WiFi › DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC
DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| Dot11Band | DOT11_BAND | 4 | +0 | +0 | テスト対象の周波数帯。 |
| uChannel | DWORD | 4 | +4 | +4 | テストに使用するチャネル番号。 |
| ADCPowerLevel | INT | 4 | +8 | +8 | ADCで測定された電力レベル。 |
各言語での定義
#include <windows.h>
// DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC (x64 12 / x86 12 バイト)
typedef struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC {
DOT11_BAND Dot11Band;
DWORD uChannel;
INT ADCPowerLevel;
} DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC
{
public int Dot11Band;
public uint uChannel;
public int ADCPowerLevel;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC
Public Dot11Band As Integer
Public uChannel As UInteger
Public ADCPowerLevel As Integer
End Structureimport ctypes
from ctypes import wintypes
class DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC(ctypes.Structure):
_fields_ = [
("Dot11Band", ctypes.c_int),
("uChannel", wintypes.DWORD),
("ADCPowerLevel", ctypes.c_int),
]#[repr(C)]
pub struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC {
pub Dot11Band: i32,
pub uChannel: u32,
pub ADCPowerLevel: i32,
}import "golang.org/x/sys/windows"
type DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC struct {
Dot11Band int32
uChannel uint32
ADCPowerLevel int32
}type
DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC = record
Dot11Band: Integer;
uChannel: DWORD;
ADCPowerLevel: Integer;
end;const DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC = extern struct {
Dot11Band: i32,
uChannel: u32,
ADCPowerLevel: i32,
};type
DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC {.bycopy.} = object
Dot11Band: int32
uChannel: uint32
ADCPowerLevel: int32struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC
{
int Dot11Band;
uint uChannel;
int ADCPowerLevel;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC サイズ: 12 バイト(x64)
dim st, 3 ; 4byte整数×3(構造体サイズ 12 / 4 切り上げ)
; Dot11Band : DOT11_BAND (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; uChannel : DWORD (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; ADCPowerLevel : INT (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC
#field int Dot11Band
#field int uChannel
#field int ADCPowerLevel
#endstruct
stdim st, DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC ; NSTRUCT 変数を確保
st->Dot11Band = 100
mes "Dot11Band=" + st->Dot11Band