tmrmixsens 2.0.0.0
|
Functions | |
void | tmrmixsens_cfg_setup (tmrmixsens_cfg_t *cfg) |
Config Object Initialization function. | |
TMRMIXSENS_RETVAL | tmrmixsens_init (tmrmixsens_t *ctx, tmrmixsens_cfg_t *cfg) |
Initialization function. | |
tmrmixsens_data_t | tmrmixsens_generic_read (tmrmixsens_t *ctx) |
Generic read function. | |
uint8_t | tmrmixsens_get_omnipolar (tmrmixsens_t *ctx) |
Get state of the omnipolar ( OMN ) pin function. | |
uint8_t | tmrmixsens_get_bipolar (tmrmixsens_t *ctx) |
Get state of the bipolar ( BI ) pin function. | |
void tmrmixsens_cfg_setup | ( | tmrmixsens_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
tmrmixsens_data_t tmrmixsens_generic_read | ( | tmrmixsens_t * | ctx | ) |
Generic read function.
ctx | Click object. |
@description This function read ADC data.
uint8_t tmrmixsens_get_bipolar | ( | tmrmixsens_t * | ctx | ) |
Get state of the bipolar ( BI ) pin function.
ctx | Click object. |
@description This function respond to changes north or south magnetic pole and return a state of the bipolar ( BI ) pin on the TMR mix-sens Click.
uint8_t tmrmixsens_get_omnipolar | ( | tmrmixsens_t * | ctx | ) |
Get state of the omnipolar ( OMN ) pin function.
ctx | Click object. |
@description This function react to the presence of a magnetic field and returns a state of the omnipolar ( OMN ) pin on the TMR mix-sens Click.
TMRMIXSENS_RETVAL tmrmixsens_init | ( | tmrmixsens_t * | ctx, |
tmrmixsens_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.