SPI dummy character
Wireless
No replies yet. Be the first to reply.
Join the discussion.
Wireless
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: SPI dummy character
by ssekim ·
Hi oyoyoy
Maybe waht you want to know is below.
#define SPI_NULL (uint8_t) 0xF0
Please refer to the below link.
[url]https://github.com/Wiznet/Arduino_WizFi250/tree/master/Software/WizFi250[/url]
RE: SPI dummy character
by oyoyoy ·
Thank you
Just to simplify it to followers here’s the corresponding code (functions to read character from SPI) from your example that actually sends SPI_NULL.
uint8_t WizFi250SpiDrv::read(void) {
uint8_t spi_recv_byte;
spi_recv_byte = wizspi_byte((uint8_t)SPI_NULL, 1, 1, 1, m_spi_debug_level);
return spi_recv_byte;
}
uint8_t WizFi250SpiDrv::wizspi_byte(uint8_t byte, uint8_t issue_cs, uint16_t delay1, uint16_t delay2, uint8_t print) {
uint8_t spi_data;
}