src/patch.c
__attribute__((at(0x00218800, "", CHIP_VER_BCM4375B1_BT, FW_VER_S20)))
void shift_buffer(uint8_t *demod_buffer,int size) {
	for (int i=0;i<size;i++) {
		if (i != 0) {
			demod_buffer[i-1]=((demod_buffer[i] & 0x80) >> 7) | demod_buffer[i-1];
		}
		demod_buffer[i] = demod_buffer[i] << 1;
	}
}
/*
Function allowing to shift a buffer by a given number of bits
*/
Function allowing to shift a buffer by a given number of bits
Function allowing to shift a buffer by a given number of bits
__attribute__((at(0x00218800, "", CHIP_VER_BCM4375B1_BT, FW_VER_S20)))
void shift_buffer(uint8_t *demod_buffer,int size) {
	for (int i=0;i<size;i++) {
		if (i != 0) {
			demod_buffer[i-1]=((demod_buffer[i] & 0x80) >> 7) | demod_buffer[i-1];
		}
		demod_buffer[i] = demod_buffer[i] << 1;
	}
}
__attribute__ ( ( at ( 0x00218800 , " " , CHIP_VER_BCM4375B1_BT , FW_VER_S20 ) ) ) void shift_buffer ( uint8_t * demod_buffer , int size ) { for ( int i = 0 ; i < size ; i ++ ) { if ( i != 0 ) { demod_buffer [ i - 1 ] = ( ( demod_buffer [ i ] & 0x80 ) >> 7 ) | demod_buffer [ i - 1 ] ; } demod_buffer [ i ] = demod_buffer [ i ] << 1 ; } }
Function allowing to shift a buffer by a given number of bits
Function allowing to shift a buffer by a given number of bits