magneto8 2.0.0.0
|
Functions | |
void | magneto8_cfg_setup (magneto8_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | magneto8_init (magneto8_t *ctx, magneto8_cfg_t *cfg) |
Initialization function. | |
void | magneto8_default_cfg (magneto8_t *ctx) |
Click Default Configuration function. | |
void | magneto8_generic_write (magneto8_t *ctx, uint8_t reg, uint8_t tx_data) |
Generic write function. | |
uint8_t | magneto8_generic_read (magneto8_t *ctx, uint8_t reg) |
Generic read function. | |
uint16_t | magneto8_get_raw_angle (magneto8_t *ctx) |
Gets Angle raw data. | |
float | magneto8_get_angle_data (magneto8_t *ctx) |
Gets Angle data. | |
uint8_t | magneto8_get_status (magneto8_t *ctx) |
Gets status data. | |
uint16_t | magneto8_get_magnitude (magneto8_t *ctx) |
Gets magnitude data. | |
uint8_t | magneto8_get_agc (magneto8_t *ctx) |
Gets AGC data. | |
uint8_t | magneto8_get_zmco (magneto8_t *ctx) |
Gets ZMCO data. | |
uint8_t | magneto8_a_pin_state (magneto8_t *ctx) |
Gets A pin state. | |
uint8_t | magneto8_b_pin_state (magneto8_t *ctx) |
Gets B pin state. | |
uint8_t | magneto8_psh_pin_state (magneto8_t *ctx) |
Gets PSH pin state. | |
uint8_t magneto8_a_pin_state | ( | magneto8_t * | ctx | ) |
Gets A pin state.
ctx | Click object. |
uint8_t magneto8_b_pin_state | ( | magneto8_t * | ctx | ) |
Gets B pin state.
ctx | Click object. |
void magneto8_cfg_setup | ( | magneto8_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void magneto8_default_cfg | ( | magneto8_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
- CONFIGURATION REG: - MAGNETO8_CFG_MODE_NOM - MAGNETO8_CFG_HYST_OFF - MAGNETO8_CFG_SF_2x - MAGNETO8_CFG_FTH_SLOW - MAGNETO8_CFG_WD_ON - ABN REG: - MAGNETO8_ABN_64
This function executes default configuration for Magneto8 click.
uint8_t magneto8_generic_read | ( | magneto8_t * | ctx, |
uint8_t | reg ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
This function reads data from the desired register.
void magneto8_generic_write | ( | magneto8_t * | ctx, |
uint8_t | reg, | ||
uint8_t | tx_data ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
tx_data | Data buf to be written. |
This function writes data to the desired register.
uint8_t magneto8_get_agc | ( | magneto8_t * | ctx | ) |
Gets AGC data.
ctx | Click object. |
float magneto8_get_angle_data | ( | magneto8_t * | ctx | ) |
Gets Angle data.
ctx | Click object. |
uint16_t magneto8_get_magnitude | ( | magneto8_t * | ctx | ) |
Gets magnitude data.
ctx | Click object. |
uint16_t magneto8_get_raw_angle | ( | magneto8_t * | ctx | ) |
Gets Angle raw data.
ctx | Click object. |
uint8_t magneto8_get_status | ( | magneto8_t * | ctx | ) |
Gets status data.
ctx | Click object. |
uint8_t magneto8_get_zmco | ( | magneto8_t * | ctx | ) |
Gets ZMCO data.
ctx | Click object. |
err_t magneto8_init | ( | magneto8_t * | ctx, |
magneto8_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
uint8_t magneto8_psh_pin_state | ( | magneto8_t * | ctx | ) |
Gets PSH pin state.
ctx | Click object. |