Interface for CRC unit drivers.
More...
Interface for CRC unit drivers.
A driver embeds a struct pbl_crc in its instance, sets it up with PBL_CRC_STATE_DEFINE() and PBL_CRC_INIT(), and implements the struct pbl_crc_ops the class calls.
◆ pbl_crc
◆ PBL_CRC_INIT
| #define PBL_CRC_INIT |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_parent, |
|
|
|
_ops |
|
) |
| |
Value: { \
.ops = (_ops), \
}
#define PBL_DEVICE_INIT_CLASS(sym, _name, _init, _parent, _cls)
Initializer for the struct pbl_device of device instance sym, in class _cls.
Definition device.h:153
Initialize a struct pbl_crc.
- Parameters
-
| sym | Symbol of the instance, as passed to PBL_CRC_STATE_DEFINE(). |
| _name | Device name. |
| _parent | Parent device, or NULL. |
| _ops | Driver operations. |
◆ PBL_CRC_STATE_DEFINE
Define the class state of a CRC unit.
- Parameters
-
| sym | Symbol of the instance. |