terminal2 2.0.0.0
|
API for configuring and manipulating Terminal 2 Click driver. More...
Topics | |
Terminal 2 MikroBUS Map | |
MikroBUS pin mapping of Terminal 2 Click driver. | |
Functions | |
void | terminal2_cfg_setup (terminal2_cfg_t *cfg) |
Terminal 2 configuration object setup function. | |
err_t | terminal2_init (terminal2_t *ctx, terminal2_cfg_t *cfg) |
Terminal 2 initialization function. | |
void | terminal2_set_pin_high (digital_out_t *pin) |
Terminal 2 set pin high function. | |
void | terminal2_set_pin_low (digital_out_t *pin) |
Terminal 2 set pin low function. | |
void | terminal2_toggle_pin (digital_out_t *pin) |
Terminal 2 toggle pin function. | |
void | terminal2_set_all_pins_high (terminal2_t *ctx) |
Terminal 2 set all pins high function. | |
void | terminal2_set_all_pins_low (terminal2_t *ctx) |
Terminal 2 set all pins low function. | |
void | terminal2_toggle_all_pins (terminal2_t *ctx) |
Terminal 2 toggle all pins function. | |
API for configuring and manipulating Terminal 2 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void terminal2_cfg_setup | ( | terminal2_cfg_t * | cfg | ) |
Terminal 2 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See terminal2_cfg_t object definition for detailed explanation. |
err_t terminal2_init | ( | terminal2_t * | ctx, |
terminal2_cfg_t * | cfg ) |
Terminal 2 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See terminal2_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See terminal2_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. void terminal2_set_all_pins_high | ( | terminal2_t * | ctx | ) |
Terminal 2 set all pins high function.
This function sets all terminal pins to high logic level.
[in] | ctx | : Click context object. See terminal2_t object definition for detailed explanation. |
void terminal2_set_all_pins_low | ( | terminal2_t * | ctx | ) |
Terminal 2 set all pins low function.
This function sets all terminal pins to low logic level.
[in] | ctx | : Click context object. See terminal2_t object definition for detailed explanation. |
void terminal2_set_pin_high | ( | digital_out_t * | pin | ) |
Terminal 2 set pin high function.
This function sets the specified pin to high logic level.
[in] | pin | Pointer to digital out pin structure from click context object. See #digital_out_t object definition for detailed explanation. |
void terminal2_set_pin_low | ( | digital_out_t * | pin | ) |
Terminal 2 set pin low function.
This function sets the specified pin to low logic level.
[in] | pin | Pointer to digital out pin structure from click context object. See #digital_out_t object definition for detailed explanation. |
void terminal2_toggle_all_pins | ( | terminal2_t * | ctx | ) |
Terminal 2 toggle all pins function.
This function toggles all terminal pins logic level.
[in] | ctx | : Click context object. See terminal2_t object definition for detailed explanation. |
void terminal2_toggle_pin | ( | digital_out_t * | pin | ) |
Terminal 2 toggle pin function.
This function toggles the specified pin logic level.
[in] | pin | Pointer to digital out pin structure from click context object. See #digital_out_t object definition for detailed explanation. |