serializer 2.0.0.0
|
API for configuring and manipulating Serializer Click driver. More...
Topics | |
Serializer Settings | |
Settings of Serializer Click driver. | |
Serializer MikroBUS Map | |
MikroBUS pin mapping of Serializer Click driver. | |
Functions | |
void | serializer_cfg_setup (serializer_cfg_t *cfg) |
Serializer configuration object setup function. | |
err_t | serializer_init (serializer_t *ctx, serializer_cfg_t *cfg) |
Serializer initialization function. | |
uint8_t | serializer_get_flt_pin (serializer_t *ctx) |
Serializer get FLT pin function. | |
err_t | serializer_read_input (serializer_t *ctx, uint8_t *data_out) |
Serializer read input function. | |
API for configuring and manipulating Serializer Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void serializer_cfg_setup | ( | serializer_cfg_t * | cfg | ) |
Serializer configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See serializer_cfg_t object definition for detailed explanation. |
uint8_t serializer_get_flt_pin | ( | serializer_t * | ctx | ) |
Serializer get FLT pin function.
This function returns the fault pin logic state.
[out] | ctx | : Click context object. See serializer_t object definition for detailed explanation. |
err_t serializer_init | ( | serializer_t * | ctx, |
serializer_cfg_t * | cfg ) |
Serializer initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See serializer_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See serializer_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t serializer_read_input | ( | serializer_t * | ctx, |
uint8_t * | data_out ) |
Serializer read input function.
This function reads the input data by using SPI serial interface, and then checks the data integrity by verifying the CRC byte.
[in] | ctx | : Click context object. See serializer_t object definition for detailed explanation. |
[out] | data_out | : Input data byte read. |
>=0
- Success with status bits flag, -1
- Error.