Mikroelektronika MIKROE-442 데이터 시트
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
508
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
SPI_Ethernet_24j600_putBytes
SPI_Ethernet_24j600_putConstBytes
Prototype
sub procedure SPI_Ethernet_24j600_putBytes(dim ptr as ^byte, dim n as
word)
Description This is MAC module routine. It stores requested number of bytes into
ENC24J600
RAM starting from
current
ENC24J600
write pointer (
EWRPT
) location.
Parameters -
ptr
: RAM buffer containing bytes to be written into
ENC24J600
RAM.
-
n
: number of bytes to be written.
Returns
Nothing.
Requires
Ethernet module has to be initialized. See SPI_Ethernet_24j600_Init.
Example
dim
buffer as byte[17]
...
buffer = “mikroElektronika”
...
SPI_Ethernet_24j600_putBytes(buffer, 16) ‘ put an RAM array into ENC24J600
buffer
Notes
None.
Prototype
sub procedure SPI_Ethernet_24j600_putConstBytes(const ptr as ^byte, dim n
as word)
Description This is MAC module routine. It stores requested number of const bytes into
ENC24J600
RAM starting
from current
ENC24J600
write pointer (
EWRPT
) location.
Parameters -
ptr
: const buffer containing bytes to be written into
ENC24J600
RAM.
-
n
: number of bytes to be written.
Returns
Nothing.
Requires
Ethernet module has to be initialized. See SPI_Ethernet_24j600_Init.
Example
const
buffer as byte[17]
...
buffer = “mikroElektronika”
...
SPI_Ethernet_24j600_putConstBytes(buffer, 16) ‘ put a const array into
ENC24J600 buffer
Notes
None.