spidev.c
/*
 * There can be "active" registers, as long as the read / write operations
 * are behind a function call
 */
There can be "active" registers, as long as the read / write operations
are behind a function call
There can be " active " registers as long as the read / write operations are behind a function call
static void read_reg(uint8_t *dst, uint8_t addr, uint8_t len)
{
	for ( ; len > 0; ++addr, ++dst, --len) {
		switch(addr) {
		case ADXL362_REG_PARTID:
			*dst = 0362;
			break;
		default:
			*dst = regs[addr];
			break;
		}
	}
}
static void read_reg ( uint8_t * dst , uint8_t addr , uint8_t len ) { for ( ; len > 0 ; ++ addr , ++ dst , -- len ) { switch ( addr ) { case ADXL362_REG_PARTID : * dst = 0362 ; break ; default : * dst = regs [ addr ] ; break ; } } }
There can be "active" registers, as long as the read / write operations
 are behind a function call
There can be " active " registers as long as the read / write operations are behind a function call