31 .header.msg_length = 0
#define EM100_MSG_SIGNATURE
#define EM100_DEDICATED_CMD
unsigned int spi_crop_chunk(const struct spi_slave *slave, unsigned int cmd_len, unsigned int buf_len)
int spi_xfer(const struct spi_slave *slave, const void *dout, size_t bytesout, void *din, size_t bytesin)
void __weak spi_init(void)
int spi_setup_slave(unsigned int bus, unsigned int cs, struct spi_slave *slave)
void spiconsole_tx_byte(unsigned char c)
void spiconsole_init(void)
static struct spi_slave slave
char data[MAX_MSG_LENGTH]
struct em100_msg_header header
#define c(value, pmcreg, dst_bits)