clockgen6 2.0.0.0
|
API for configuring and manipulating Clock Gen 6 Click driver. More...
Topics | |
Clock Gen 6 Registers Settings | |
Settings for registers of Clock Gen 6 Click driver. | |
Clock Gen 6 MikroBUS Map | |
MikroBUS pin mapping of Clock Gen 6 Click driver. | |
Functions | |
void | clockgen6_cfg_setup (clockgen6_cfg_t *cfg) |
Clock Gen 6 configuration object setup function. | |
err_t | clockgen6_init (clockgen6_t *ctx, clockgen6_cfg_t *cfg) |
Clock Gen 6 initialization function. | |
err_t | clockgen6_default_cfg (clockgen6_t *ctx) |
Clock Gen 6 default configuration function. | |
err_t | clockgen6_set_digipot (clockgen6_t *ctx, uint8_t position) |
Clock Gen 6 set digipot function. | |
void | clockgen6_enable_output (clockgen6_t *ctx) |
Clock Gen 6 enable output function. | |
void | clockgen6_disable_output (clockgen6_t *ctx) |
Clock Gen 6 disable output function. | |
API for configuring and manipulating Clock Gen 6 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void clockgen6_cfg_setup | ( | clockgen6_cfg_t * | cfg | ) |
Clock Gen 6 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See clockgen6_cfg_t object definition for detailed explanation. |
err_t clockgen6_default_cfg | ( | clockgen6_t * | ctx | ) |
Clock Gen 6 default configuration function.
This function executes a default configuration of Clock Gen 6 click board.
[in] | ctx | : Click context object. See clockgen6_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. void clockgen6_disable_output | ( | clockgen6_t * | ctx | ) |
Clock Gen 6 disable output function.
This function disables the output by setting the EN pin to low logic state.
[in] | ctx | : Click context object. See clockgen6_t object definition for detailed explanation. |
void clockgen6_enable_output | ( | clockgen6_t * | ctx | ) |
Clock Gen 6 enable output function.
This function enables the output by setting the EN pin to high logic state.
[in] | ctx | : Click context object. See clockgen6_t object definition for detailed explanation. |
err_t clockgen6_init | ( | clockgen6_t * | ctx, |
clockgen6_cfg_t * | cfg ) |
Clock Gen 6 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See clockgen6_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See clockgen6_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t clockgen6_set_digipot | ( | clockgen6_t * | ctx, |
uint8_t | position ) |
Clock Gen 6 set digipot function.
This function sets the digital potentiometer position by using SPI serial interface.
[in] | ctx | : Click context object. See clockgen6_t object definition for detailed explanation. |
[in] | position | : Digital potentiometer position (0-255). |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.