Skip to content
Snippets Groups Projects
Commit 43bbd160 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

lrdp-v2: register.py: rest-ify some docs

Some of the documentation in register.py doesn't render nicely when
built with Sphinx.  Fix this.

Change-Id: Ifdb0da6c21f092b58c51be8f566a7a4e5cab984b
parent bfb4c92e
Branches
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ class Register(object): ...@@ -18,7 +18,7 @@ class Register(object):
bits). Provides easy read and write access to the fields in the bits). Provides easy read and write access to the fields in the
register by taking care of all bit-shifting automatically. Fields register by taking care of all bit-shifting automatically. Fields
can be defined at __init__ time using kwargs or can be added can be defined at __init__ time using kwargs or can be added
dynamically with `add_field'. Fields are accessible as instance dynamically with ``add_field``. Fields are accessible as instance
attributes. attributes.
For example: For example:
...@@ -64,7 +64,7 @@ class Register(object): ...@@ -64,7 +64,7 @@ class Register(object):
>>> hex(abc.value) >>> hex(abc.value)
'0x5' '0x5'
We also handle `None' values: We also handle ``None`` values:
>>> r = Register(None, h=(3,0)) >>> r = Register(None, h=(3,0))
>>> r >>> r
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment