clockgen5 2.0.0.0
|
API for configuring and manipulating Clock Gen 5 Click driver. More...
Topics | |
Clock Gen 5 Registers Settings | |
Settings for registers of Clock Gen 5 Click driver. | |
Clock Gen 5 MikroBUS Map | |
MikroBUS pin mapping of Clock Gen 5 Click driver. | |
Functions | |
void | clockgen5_cfg_setup (clockgen5_cfg_t *cfg) |
Clock Gen 5 configuration object setup function. | |
err_t | clockgen5_init (clockgen5_t *ctx, clockgen5_cfg_t *cfg) |
Clock Gen 5 initialization function. | |
void | clockgen5_out_enable (clockgen5_t *ctx, uint8_t en_out) |
Enable output function. | |
void | clockgen5_set_config (clockgen5_t *ctx, uint8_t cfg) |
Set configuration function. | |
void | clockgen5_set_freq (clockgen5_t *ctx, float freq) |
Set frequency function. | |
API for configuring and manipulating Clock Gen 5 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void clockgen5_cfg_setup | ( | clockgen5_cfg_t * | cfg | ) |
Clock Gen 5 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See clockgen5_cfg_t object definition for detailed explanation. |
err_t clockgen5_init | ( | clockgen5_t * | ctx, |
clockgen5_cfg_t * | cfg ) |
Clock Gen 5 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See clockgen5_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See clockgen5_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.void clockgen5_out_enable | ( | clockgen5_t * | ctx, |
uint8_t | en_out ) |
Enable output function.
The function enable output by sets the states of the OE ( RST ) pin.
[in] | ctx | : Click context object. See clockgen5_t object definition for detailed explanation. |
[in] | en_out | : Output enabled or disabled. |
void clockgen5_set_config | ( | clockgen5_t * | ctx, |
uint8_t | cfg ) |
Set configuration function.
The function set configuration.
[in] | ctx | : Click context object. See clockgen5_t object definition for detailed explanation. |
[in] | cfg | : Config settings of Clock Gen 5 click. |
void clockgen5_set_freq | ( | clockgen5_t * | ctx, |
float | freq ) |
Set frequency function.
The function set frequency in range of 1.039 KHz to 68.03 MHz.
[in] | ctx | : Click context object. See clockgen5_t object definition for detailed explanation. |
[in] | freq | : Frequency in KHz ( 1.039 KHz to 68.03 MHz ) |