![]() |
no-OS
|
#include <stdlib.h>#include <errno.h>#include "max31343.h"#include "no_os_delay.h"#include "no_os_alloc.h"Functions | |
| int | max31343_reg_read (struct max31343_dev *dev, uint8_t reg_addr, uint8_t *reg_data) |
| Read device register. | |
| int | max31343_reg_write (struct max31343_dev *dev, uint8_t reg_addr, uint8_t reg_data) |
| Write device register. | |
| int | max31343_update_bits (struct max31343_dev *dev, uint8_t reg_addr, uint8_t mask, uint8_t reg_data) |
| Update specific register bits. | |
| int | max31343_init (struct max31343_dev **device, struct max31343_init_param init_param) |
| Initialize the device. | |
| int | max31343_set_time_stamp (struct max31343_dev *dev, struct max31343_time_stamp ts) |
| Set time stamp. | |
| int | max31343_reg_read_time_stamp (struct max31343_dev *dev, struct max31343_time_stamp *ts) |
| Read time stamp. | |
| int | max31343_remove (struct max31343_dev *dev) |
| Remove the device and release resources. | |
| int max31343_init | ( | struct max31343_dev ** | device, |
| struct max31343_init_param | init_param ) |
Initialize the device.
| device | - The device structure. |
| init_param | - The structure that contains the device initial parameters. |
| int max31343_reg_read | ( | struct max31343_dev * | dev, |
| uint8_t | reg_addr, | ||
| uint8_t * | reg_data ) |
Read device register.
| dev | - The device structure. |
| reg_addr | - The register address. |
| reg_data | - The data read from the register. |
| int max31343_reg_read_time_stamp | ( | struct max31343_dev * | dev, |
| struct max31343_time_stamp * | ts ) |
Read time stamp.
| dev | - The device structure. |
| ts | - Structure holding the time stamp to read. |
| int max31343_reg_write | ( | struct max31343_dev * | dev, |
| uint8_t | reg_addr, | ||
| uint8_t | reg_data ) |
Write device register.
| dev- | The device structure. |
| reg_addr | - The register address. |
| reg_data | - The data to be written. |
| int max31343_remove | ( | struct max31343_dev * | dev | ) |
Remove the device and release resources.
| dev | - The device structure. |
| int max31343_set_time_stamp | ( | struct max31343_dev * | dev, |
| struct max31343_time_stamp | ts ) |
Set time stamp.
| dev | - The device structure. |
| ts | - Structure holding the time stamp to be set. |
| int max31343_update_bits | ( | struct max31343_dev * | dev, |
| uint8_t | reg_addr, | ||
| uint8_t | mask, | ||
| uint8_t | reg_data ) |
Update specific register bits.
| dev | - The device structure. |
| reg_addr | - The register address. |
| mask | - Specific bits mask. |
| reg_data | - The data to be written. |