Exemplo n.º 1
0
bool Accelerometer::isInactivityZEnabled() {  
  return getRegisterBit(ADXL345_ACT_INACT_CTL, 0); 
}
Exemplo n.º 2
0
bool CAdxl345::getInterruptSource(byte interruptBit) {
	return getRegisterBit(ADXL345_INT_SOURCE, interruptBit);
}
Exemplo n.º 3
0
bool CAdxl345::isInterruptEnabled(byte interruptBit) {
	return getRegisterBit(ADXL345_INT_ENABLE, interruptBit);
}
Exemplo n.º 4
0
bool CAdxl345::isActivitySourceOnZ() {
	return getRegisterBit(ADXL345_ACT_TAP_STATUS, 4);
}
Exemplo n.º 5
0
bool CAdxl345::isAsleep() {
	return getRegisterBit(ADXL345_ACT_TAP_STATUS, 3);
}
Exemplo n.º 6
0
bool CAdxl345::isInactivityZEnabled() {
	return getRegisterBit(ADXL345_ACT_INACT_CTL, 0);
}
Exemplo n.º 7
0
bool CAdxl345::getSuppressBit() {
	return getRegisterBit(ADXL345_TAP_AXES, 3);
}
Exemplo n.º 8
0
bool Accelerometer::isAsleep(){ 
  return getRegisterBit(ADXL345_ACT_TAP_STATUS, 3); 
}
Exemplo n.º 9
0
bool Accelerometer::isLowPower(){ 
  return getRegisterBit(ADXL345_BW_RATE, 4); 
}
Exemplo n.º 10
0
bool Accelerometer::isActivitySourceOnZ(){ 
  return getRegisterBit(ADXL345_ACT_TAP_STATUS, 4); 
}
Exemplo n.º 11
0
bool Accelerometer::isTapSourceOnZ(){ 
  return getRegisterBit(ADXL345_ACT_TAP_STATUS, 0); 
}
Exemplo n.º 12
0
bool Accelerometer::isTapDetectionOnZ(){ 
  return getRegisterBit(ADXL345_TAP_AXES, 0); 
}
Exemplo n.º 13
0
bool Accelerometer::getSuppressBit(){ 
  return getRegisterBit(ADXL345_TAP_AXES, 3); 
}
Exemplo n.º 14
0
bool Accelerometer::isInactivityAc(){ 
  return getRegisterBit(ADXL345_ACT_INACT_CTL, 3); 
}
Exemplo n.º 15
0
// Gets the state of the justify bit
bool CAdxl345::getJustifyBit() {
	return getRegisterBit(ADXL345_DATA_FORMAT, 2);
}
Exemplo n.º 16
0
bool Accelerometer::getInterruptSource(byte interruptBit) {
  return getRegisterBit(ADXL345_INT_SOURCE,interruptBit);
}
Exemplo n.º 17
0
bool CAdxl345::isActivityYEnabled() {
	return getRegisterBit(ADXL345_ACT_INACT_CTL, 5);
}
Exemplo n.º 18
0
bool Accelerometer::getInterruptMapping(byte interruptBit) {
  return getRegisterBit(ADXL345_INT_MAP,interruptBit);
}
Exemplo n.º 19
0
bool CAdxl345::isInactivityAc() {
	return getRegisterBit(ADXL345_ACT_INACT_CTL, 3);
}
Exemplo n.º 20
0
bool Accelerometer::isInterruptEnabled(byte interruptBit) {
  return getRegisterBit(ADXL345_INT_ENABLE,interruptBit);
}
Exemplo n.º 21
0
bool CAdxl345::isTapDetectionOnZ() {
	return getRegisterBit(ADXL345_TAP_AXES, 0);
}
Exemplo n.º 22
0
// gets the state of the SELF_TEST bit
bool Accelerometer::getSelfTestBit() {
  return getRegisterBit(ADXL345_DATA_FORMAT, 7);
}
Exemplo n.º 23
0
bool CAdxl345::isTapSourceOnZ() {
	return getRegisterBit(ADXL345_ACT_TAP_STATUS, 0);
}
Exemplo n.º 24
0
// Gets the state of the SPI bit
bool CAdxl345::getSpiBit() {
	return getRegisterBit(ADXL345_DATA_FORMAT, 6);
}
Exemplo n.º 25
0
bool CAdxl345::isLowPower() {
	return getRegisterBit(ADXL345_BW_RATE, 4);
}
Exemplo n.º 26
0
// Gets the state of the INT_INVERT bit
bool CAdxl345::getInterruptLevelBit() {
	return getRegisterBit(ADXL345_DATA_FORMAT, 5);
}
Exemplo n.º 27
0
bool CAdxl345::getInterruptMapping(byte interruptBit) {
	return getRegisterBit(ADXL345_INT_MAP, interruptBit);
}
Exemplo n.º 28
0
// Gets the state of the FULL_RES bit
bool CAdxl345::getFullResBit() {
	return getRegisterBit(ADXL345_DATA_FORMAT, 3);
}
Exemplo n.º 29
0
// gets the state of the SELF_TEST bit
bool CAdxl345::getSelfTestBit() {
	return getRegisterBit(ADXL345_DATA_FORMAT, 7);
}
Exemplo n.º 30
0
bool Accelerometer::isActivityYEnabled() {  
  return getRegisterBit(ADXL345_ACT_INACT_CTL, 5); 
}