/* Parameter nnn is the combination of bits at positions 0, 1 and 2 in the RTS opcode that respectively initiate transmission for buffers TXB0, TXB1 and TXB2.  */
static int mcp2515_cmd_rts(const struct device *dev, uint8_t nnn)
/* Parameter nnn is the combination of bits at positions 0, 1 and 2 in the RTS opcode that respectively initiate transmission for buffers TXB0, TXB1 and TXB2.  */
static int mcp2515_cmd_rts(const struct device *dev, uint8_t nnn)
{
	const struct mcp2515_config *dev_cfg = dev->config;
	__ASSERT(nnn < BIT(MCP2515_TX_CNT), "nnn < BIT(MCP2515_TX_CNT)");
	uint8_t cmd_buf[] = { MCP2515_OPCODE_RTS | nnn };
	struct spi_buf tx_buf[] = {
		{ .buf = cmd_buf, .len = sizeof(cmd_buf) }
	};
	const struct spi_buf_set tx = {
		.buffers = tx_buf, .count = ARRAY_SIZE(tx_buf)
	};
	return spi_write_dt(&dev_cfg->bus, &tx);
}