Writing in sx_raw_bits_out_dir to show that bits need to be written to the bus.
Implemented wrap around for writing in sx_raw_out arrays.