@@ -75,7 +75,7 @@ class DataFormat(Structure):
7575 ('repeat' , c_uint )]
7676
7777class ChannelModifier (Enum ):
78- """Contains the modifier types of an IIO channel."""
78+ """Contains the modifier type of an IIO channel."""
7979
8080 IIO_NO_MOD = 0
8181 IIO_MOD_X = 1
@@ -526,10 +526,6 @@ class ChannelType(Enum):
526526_buffer_cancel .restype = c_void_p
527527_buffer_cancel .argtypes = (_BufferPtr , )
528528
529- _buffer_get_data = _lib .iio_buffer_get_data
530- _buffer_get_data .restype = c_void_p
531- _buffer_get_data .argtypes = (_BufferPtr , )
532-
533529_buffer_get_device = _lib .iio_buffer_get_device
534530_buffer_get_device .restype = _DevicePtr
535531_buffer_get_device .argtypes = (_BufferPtr , )
@@ -811,6 +807,15 @@ def type(self):
811807 return ChannelType (_channel_get_type (self ._channel ))
812808
813809 def convert (self , dst , src ):
810+ """
811+ Converts src and saves the result in dst, using current channel's data format.
812+
813+ parameters:
814+ dst: type=list
815+ The variable where the result is stored.
816+ src: type=list
817+ Data to be converted.
818+ """
814819 _channel_convert (self ._channel , c_void_p (* dst ), c_void_p (* src ))
815820
816821class Buffer (object ):
@@ -904,12 +909,22 @@ def write(self, array):
904909 return length
905910
906911 def cancel (self ):
912+ """
913+ Cancels the current buffer.
914+ """
907915 _buffer_cancel (self ._buffer )
908916
909- def get_data (self ):
910- return _buffer_get_data (self ._buffer )
911-
912917 def set_blocking_mode (self , blocking ):
918+ """
919+ Sets the buffer's blocking mode.
920+
921+ parameters:
922+ blocking: type=boolean
923+ True if in blocking_mode else False.
924+
925+ returns: type=int
926+ Return code from the C layer.
927+ """
913928 return _buffer_set_blocking_mode (self ._buffer , c_bool (blocking ))
914929
915930 @property
@@ -922,10 +937,18 @@ def device(self):
922937
923938 @property
924939 def poll_fd (self ):
940+ """
941+ This buffer's poll_fd.
942+ type: int
943+ """
925944 return _buffer_get_poll_fd (self ._buffer )
926945
927946 @property
928947 def step (self ):
948+ """
949+ This buffer's step size.
950+ type: int
951+ """
929952 return _buffer_step (self ._buffer )
930953
931954class _DeviceOrTrigger (object ):
@@ -1090,6 +1113,10 @@ def _get_trigger(self):
10901113
10911114 @property
10921115 def context (self ):
1116+ """
1117+ This device's context.
1118+ type: iio.Context
1119+ """
10931120 return self .ctx ()
10941121
10951122class Context (object ):
0 commit comments