/* Calculate pointer to block from its index and channel configuration (RX or TX). No validation is performed.  */
static struct block_content* block_from_index(const struct channel_config *ch_conf, size_t block_index)
/* Calculate pointer to block from its index and channel configuration (RX or TX). No validation is performed.  */
static struct block_content* block_from_index(const struct channel_config *ch_conf, size_t block_index)
{
	return (struct block_content *)(ch_conf->blocks_ptr +
					block_index * ch_conf->block_size);
}