@@ -289,15 +289,16 @@ def chip(self) -> str:
289289 """
290290 Ethernet controller chip type.
291291
292- :return str: The chip type."""
292+ :return str: The chip type.
293+ """
293294 return self ._chip_type
294295
295296 @property
296297 def ip_address (self ) -> bytearray :
297298 """
298299 Configured IP address.
299300
300- :return bytearray.
301+ :return bytearray: IP address as four bytes .
301302 """
302303 return self .read (REG_SIPR , 0x00 , 4 )
303304
@@ -307,7 +308,7 @@ def pretty_ip(
307308 ip : bytearray ,
308309 ) -> str :
309310 """
310- Convert a bytearray IP address to a dotted-quad string for printing.
311+ Convert a 4 byte IP address to a dotted-quad string for printing.
311312
312313 :param bytearray ip: A four byte IP address.
313314
@@ -323,9 +324,9 @@ def unpretty_ip(
323324 """
324325 Convert a dotted-quad string to a four byte IP address.
325326
326- :param str ip: The IP address (a string of the form '255.255.255.255') to be converted.
327+ :param str ip: IP address (a string of the form '255.255.255.255') to be converted.
327328
328- :return bytes: The IP address in four bytes.
329+ :return bytes: IP address in four bytes.
329330 """
330331 octets = [int (x ) for x in ip .split ("." )]
331332 return bytes (octets )
@@ -335,7 +336,7 @@ def mac_address(self) -> bytearray:
335336 """
336337 Ethernet hardware's MAC address.
337338
338- :return bytearray: The six byte MAC address."""
339+ :return bytearray: Six byte MAC address."""
339340 return self .read (REG_SHAR , 0x00 , 6 )
340341
341342 @mac_address .setter
@@ -374,7 +375,7 @@ def remote_ip(self, socket_num: int) -> Union[str, bytearray]:
374375
375376 :param int socket_num: ID number of the socket to check.
376377
377- :return Union[str, bytearray]: The four byte IP address.
378+ :return Union[str, bytearray]: A four byte IP address.
378379 """
379380 if socket_num >= self .max_sockets :
380381 return self ._pbuff
@@ -553,7 +554,7 @@ def read(
553554 :param int length: Number of bytes to read from the register, defaults to 1.
554555 :param Optional[WriteableBuffer] buffer: Buffer to read data into, defaults to None.
555556
556- :return Union[WriteableBuffer, bytearray]: The data read from the chip.
557+ :return Union[WriteableBuffer, bytearray]: Data read from the chip.
557558 """
558559 with self ._device as bus_device :
559560 if self ._chip_type == "w5500" :
@@ -609,6 +610,7 @@ def socket_available(self, socket_num: int, sock_type: int = SNMR_TCP) -> int:
609610 :param int socket_num: Socket to check for available bytes.
610611 :param int sock_type: Socket type. Use SNMR_TCP for TCP or SNMR_UDP for UDP, \
611612 defaults to SNMR_TCP.
613+
612614 :return int: Number of bytes available to read.
613615 """
614616 if self ._debug :
0 commit comments