ioLibrary for Cortex M series
|
These are functions to access common registers. More...
![]() |
Functions | |
void | setMR (uint8_t mr) |
Set Mode Register. More... | |
uint8_t | getMR (void) |
Get Mode Register. More... | |
void | setGAR (uint8_t *gar) |
Set gateway IP address. More... | |
void | getGAR (uint8_t *gar) |
Get gateway IP address. More... | |
void | setSUBR (uint8_t *subr) |
Set subnet mask address. More... | |
void | getSUBR (uint8_t *subr) |
Get subnet mask address. More... | |
void | setSHAR (uint8_t *shar) |
Set local MAC address. More... | |
void | getSHAR (uint8_t *shar) |
Get local MAC address. More... | |
void | setSIPR (uint8_t *sipr) |
Set local IP address. More... | |
void | getSIPR (uint8_t *sipr) |
Get local IP address. More... | |
void | setINTLEVEL (uint16_t intlevel) |
Set INTLEVEL register. More... | |
uint16_t | getINTLEVEL (void) |
Get INTLEVEL register. More... | |
void | setIR (uint8_t ir) |
Set IR register. More... | |
uint8_t | getIR (void) |
Get IR register. More... | |
void | setIMR (uint8_t imr) |
Set IMR register. More... | |
uint8_t | getIMR (void) |
Get IMR register. More... | |
void | setSIR (uint8_t sir) |
Set SIR register. More... | |
uint8_t | getSIR (void) |
Get SIR register. More... | |
void | setSIMR (uint8_t simr) |
Set SIMR register. More... | |
uint8_t | getSIMR (void) |
Get SIMR register. More... | |
void | setRTR (uint16_t rtr) |
Set RTR register. More... | |
uint16_t | getRTR (void) |
Get RTR register. More... | |
void | setRCR (uint8_t rcr) |
Set RCR register. More... | |
uint8_t | getRCR (void) |
Get RCR register. More... | |
void | setPTIMER (uint8_t ptimer) |
Set PTIMER register. More... | |
uint8_t | getPTIMER (void) |
Get PTIMER register. More... | |
void | setPMAGIC (uint8_t pmagic) |
Set PMAGIC register. More... | |
uint8_t | getPMAGIC (void) |
Get PMAGIC register. More... | |
void | setPHAR (uint8_t *phar) |
Set PHAR register. More... | |
void | getPHAR (uint8_t *phar) |
Get PHAR register. More... | |
void | setPSID (uint16_t psid) |
Set PSID register. More... | |
uint16_t | getPSID (void) |
Get PSID register. More... | |
void | setPMRU (uint16_t pmru) |
Set PMRU register. More... | |
uint16_t | getPMRU (void) |
Get PMRU register. More... | |
void | getUIPR (uint8_t *uipr) |
Get unreachable IP address. More... | |
uint16_t | getUPORTR (void) |
Get UPORTR register. More... | |
void | setPHYCFGR (uint8_t phycfgr) |
Set PHYCFGR register. More... | |
uint8_t | getPHYCFGR (void) |
Get PHYCFGR register. More... | |
uint8_t | getVERSIONR (void) |
Get VERSIONR register. More... | |
These are functions to access common registers.
void setMR | ( | uint8_t | mr) |
Set Mode Register.
mr | The value to be set |
Definition at line 298 of file w5500.c.
References MR, and WIZCHIP_WRITE().
Referenced by wizchip_sw_reset().
uint8_t getMR | ( | void | ) |
Get Mode Register.
Definition at line 303 of file w5500.c.
References MR, and WIZCHIP_READ().
Referenced by GetTCPSocketStatus(), GetUDPSocketStatus(), and wizchip_sw_reset().
void setGAR | ( | uint8_t * | gar) |
Set gateway IP address.
gar | Pointer variable to set gateway IP address. It should be allocated 4 bytes. |
Definition at line 308 of file w5500.c.
References GAR, and WIZCHIP_WRITE_BUF().
Referenced by ClsNetInfo(), SetNetInfo(), and wizchip_sw_reset().
void getGAR | ( | uint8_t * | gar) |
Get gateway IP address.
gar | Pointer variable to get gateway IP address. It should be allocated 4 bytes. |
Definition at line 313 of file w5500.c.
References GAR, and WIZCHIP_READ_BUF().
Referenced by GetNetInfo(), and wizchip_sw_reset().
void setSUBR | ( | uint8_t * | subr) |
Set subnet mask address.
subr | Pointer variable to set subnet mask address. It should be allocated 4 bytes. |
Definition at line 318 of file w5500.c.
References SUBR, and WIZCHIP_WRITE_BUF().
Referenced by ClsNetInfo(), SetNetInfo(), and wizchip_sw_reset().
void getSUBR | ( | uint8_t * | subr) |
Get subnet mask address.
subr | Pointer variable to get subnet mask address. It should be allocated 4 bytes. |
Definition at line 323 of file w5500.c.
References SUBR, and WIZCHIP_READ_BUF().
Referenced by GetNetInfo(), TCPCltOpenNB(), UDPSendNB(), and wizchip_sw_reset().
void setSHAR | ( | uint8_t * | shar) |
Set local MAC address.
shar | Pointer variable to set local MAC address. It should be allocated 6 bytes. |
Definition at line 328 of file w5500.c.
References SHAR, and WIZCHIP_WRITE_BUF().
Referenced by SetNetInfo(), and wizchip_sw_reset().
void getSHAR | ( | uint8_t * | shar) |
Get local MAC address.
shar | Pointer variable to get local MAC address. It should be allocated 6 bytes. |
Definition at line 333 of file w5500.c.
References SHAR, and WIZCHIP_READ_BUF().
Referenced by GetNetInfo(), and wizchip_sw_reset().
void setSIPR | ( | uint8_t * | sipr) |
Set local IP address.
sipr | Pointer variable to set local IP address. It should be allocated 4 bytes. |
Definition at line 338 of file w5500.c.
References SIPR, and WIZCHIP_WRITE_BUF().
Referenced by ClsNetInfo(), SetNetInfo(), and wizchip_sw_reset().
void getSIPR | ( | uint8_t * | sipr) |
Get local IP address.
sipr | Pointer variable to get local IP address. It should be allocated 4 bytes. |
Definition at line 343 of file w5500.c.
References SIPR, and WIZCHIP_READ_BUF().
Referenced by GetNetInfo(), TCPCltOpenNB(), UDPSendNB(), and wizchip_sw_reset().
void setINTLEVEL | ( | uint16_t | intlevel) |
Set INTLEVEL register.
intlevel | Value to set INTLEVEL register. |
Definition at line 348 of file w5500.c.
References INTLEVEL, WIZCHIP_OFFSET_INC, and WIZCHIP_WRITE().
uint16_t getINTLEVEL | ( | void | ) |
Get INTLEVEL register.
Definition at line 354 of file w5500.c.
References INTLEVEL, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
void setIR | ( | uint8_t | ir) |
uint8_t getIR | ( | void | ) |
void setIMR | ( | uint8_t | imr) |
Set IMR register.
imr | Value to set IMR register. |
Definition at line 372 of file w5500.c.
References IMR, and WIZCHIP_WRITE().
Referenced by SetSocketOption().
uint8_t getIMR | ( | void | ) |
void setSIR | ( | uint8_t | sir) |
uint8_t getSIR | ( | void | ) |
void setSIMR | ( | uint8_t | simr) |
uint8_t getSIMR | ( | void | ) |
void setRTR | ( | uint16_t | rtr) |
Set RTR register.
rtr | Value to set RTR register. |
Definition at line 402 of file w5500.c.
References RTR, WIZCHIP_OFFSET_INC, and WIZCHIP_WRITE().
Referenced by SetSocketOption().
uint16_t getRTR | ( | void | ) |
Get RTR register.
Definition at line 408 of file w5500.c.
References RTR, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
void setRCR | ( | uint8_t | rcr) |
Set RCR register.
rcr | Value to set RCR register. |
Definition at line 416 of file w5500.c.
References RCR, and WIZCHIP_WRITE().
Referenced by SetSocketOption().
uint8_t getRCR | ( | void | ) |
void setPTIMER | ( | uint8_t | ptimer) |
Set PTIMER register.
ptimer | Value to set PTIMER register. |
Definition at line 426 of file w5500.c.
References PTIMER, and WIZCHIP_WRITE().
uint8_t getPTIMER | ( | void | ) |
Get PTIMER register.
Definition at line 431 of file w5500.c.
References PTIMER, and WIZCHIP_READ().
void setPMAGIC | ( | uint8_t | pmagic) |
Set PMAGIC register.
pmagic | Value to set PMAGIC register. |
Definition at line 436 of file w5500.c.
References PMAGIC, and WIZCHIP_WRITE().
uint8_t getPMAGIC | ( | void | ) |
Get PMAGIC register.
Definition at line 441 of file w5500.c.
References PMAGIC, and WIZCHIP_READ().
void setPHAR | ( | uint8_t * | phar) |
void getPHAR | ( | uint8_t * | phar) |
void setPSID | ( | uint16_t | psid) |
Set PSID register.
psid | Value to set PSID register. |
Definition at line 456 of file w5500.c.
References PSID, WIZCHIP_OFFSET_INC, and WIZCHIP_WRITE().
uint16_t getPSID | ( | void | ) |
Get PSID register.
Definition at line 462 of file w5500.c.
References PSID, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
void setPMRU | ( | uint16_t | pmru) |
Set PMRU register.
pmru | Value to set PMRU register. |
Definition at line 470 of file w5500.c.
References PMRU, WIZCHIP_OFFSET_INC, and WIZCHIP_WRITE().
uint16_t getPMRU | ( | void | ) |
Get PMRU register.
Definition at line 476 of file w5500.c.
References PMRU, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
void getUIPR | ( | uint8_t * | uipr) |
Get unreachable IP address.
uipr | Pointer variable to get unreachable IP address. It should be allocated 4 bytes. |
Definition at line 485 of file w5500.c.
References UIPR, and WIZCHIP_READ_BUF().
uint16_t getUPORTR | ( | void | ) |
Get UPORTR register.
Definition at line 490 of file w5500.c.
References UPORTR, WIZCHIP_OFFSET_INC, and WIZCHIP_READ().
void setPHYCFGR | ( | uint8_t | phycfgr) |
Set PHYCFGR register.
phycfgr | Value to set PHYCFGR register. |
Definition at line 497 of file w5500.c.
References PHYCFGR, and WIZCHIP_WRITE().
uint8_t getPHYCFGR | ( | void | ) |
Get PHYCFGR register.
Definition at line 502 of file w5500.c.
References PHYCFGR, and WIZCHIP_READ().