GrFamily.Module.Adxl345.GetXYZ C# (CSharp) Method

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
        public void GetXYZ(out short x, out short y, out short z)
        {
            Measure();
            RegReads(DataX0, ref _xyz);
            x = (short)((_xyz[1] << 8) + _xyz[0]);
            y = (short)((_xyz[3] << 8) + _xyz[2]);
            z = (short)((_xyz[5] << 8) + _xyz[4]);
        }