C# Class GrFamily.ExternalBoard.Accelerometer

3�������x�Z���T�[�iADXL345�j
Inheritance: GrFamily.Module.I2CDeviceEx
Mostrar archivo Open project: netmf-lib-grfamily/GrFamilyLibrary Class Usage Examples

Public Methods

Method Description
GetX ( ) : short

X�������̉����x�f�[�^��擾����

GetXYZ ( short &x, short &y, short &z ) : void

3���̉����x�f�[�^��擾����

GetY ( ) : short

Y�������̉����x�f�[�^��擾����

GetZ ( ) : short

Z�������̉����x�f�[�^��擾����

StartTakingMeasurements ( ) : void

�^�C�}�[��N�����āA����I�ɉ����x�f�[�^�̎擾��n�߂�

StopTakingMeasurements ( ) : void

�����x�f�[�^�����I�Ɏ擾���邽�߂̃^�C�}�[���~����

Private Methods

Method Description
Accelerometer ( ushort i2CAddress ) : System

�R���X�g���N�^�[

Measure ( ) : void

�����x�𑪒肷��

Measure_Timer ( object state ) : void

����I�ɉ����x�f�[�^��擾����

SetDataFormat ( byte n ) : void

�f�[�^�t�H�[�}�b�g��ݒ肷��

�ݒ�l�̓r�b�g�t���O
D7: SELF_TEST
D6: SPI
D5: INT_INVERT
D4: 0
D3: FULL_RES
D2: Justfy
D1-D0: Range
0 - 0: +-2g
0 - 1: +-4g
1 - 0: +-8g
1 - 1: +-16g

ToWakeup ( ) : void

�X���[�v���[�h�ɓ���Ȃ��悤�ɂ���

Method Details

GetX() public method

X�������̉����x�f�[�^��擾����
public GetX ( ) : short
return short

GetXYZ() public method

3���̉����x�f�[�^��擾����
public GetXYZ ( short &x, short &y, short &z ) : void
x short X�������̉����x�f�[�^�̎�M�o�b�t�@
y short Y�������̉����x�f�[�^�̎�M�o�b�t�@
z short Z�������̉����x�f�[�^�̎�M�o�b�t�@
return void

GetY() public method

Y�������̉����x�f�[�^��擾����
public GetY ( ) : short
return short

GetZ() public method

Z�������̉����x�f�[�^��擾����
public GetZ ( ) : short
return short

StartTakingMeasurements() public method

�^�C�}�[��N�����āA����I�ɉ����x�f�[�^�̎擾��n�߂�
public StartTakingMeasurements ( ) : void
return void

StopTakingMeasurements() public method

�����x�f�[�^�����I�Ɏ擾���邽�߂̃^�C�}�[���~����
public StopTakingMeasurements ( ) : void
return void