no-OS
|
Contains type definitions and prototype declarations for common.c. More...
#include "stdint.h"
Go to the source code of this file.
Classes | |
struct | spiSettings_t |
Data structure to hold SPI settings for all system device types. More... | |
Macros | |
#define | THROW_ERROR() |
#define | SPIARRAYSIZE 1024 |
#define | SPIARRAYTRIPSIZE ((SPIARRAYSIZE / 3) * 3) |
Enumerations | |
enum | ADI_ERR { ADIERR_OK =0, ADIERR_INV_PARM, ADIERR_FAILED } |
enum | commonErr_t { COMMONERR_OK =0, COMMONERR_FAILED } |
enum | ADI_LOGLEVEL { ADIHAL_LOG_NONE = 0x0, ADIHAL_LOG_MESSAGE = 0x1, ADIHAL_LOG_WARNING = 0x2, ADIHAL_LOG_ERROR = 0x4, ADIHAL_LOG_SPI = 0x8, ADIHAL_LOG_AXI_REG = 0x10, ADIHAL_LOG_AXI_MEM = 0x20, ADIHAL_LOG_ALL = 0x3F } |
Functions | |
commonErr_t | CMB_closeHardware (void) |
commonErr_t | CMB_setGPIO (uint32_t GPIO) |
commonErr_t | CMB_hardReset (uint8_t spiChipSelectIndex) |
commonErr_t | CMB_setSPIOptions (spiSettings_t *spiSettings) |
commonErr_t | CMB_setSPIChannel (uint16_t chipSelectIndex) |
commonErr_t | CMB_SPIWriteByte (spiSettings_t *spiSettings, uint16_t addr, uint8_t data) |
commonErr_t | CMB_SPIWriteBytes (spiSettings_t *spiSettings, uint16_t *addr, uint8_t *data, uint32_t count) |
commonErr_t | CMB_SPIReadByte (spiSettings_t *spiSettings, uint16_t addr, uint8_t *readdata) |
commonErr_t | CMB_SPIWriteField (spiSettings_t *spiSettings, uint16_t addr, uint8_t field_val, uint8_t mask, uint8_t start_bit) |
commonErr_t | CMB_SPIReadField (spiSettings_t *spiSettings, uint16_t addr, uint8_t *field_val, uint8_t mask, uint8_t start_bit) |
commonErr_t | CMB_wait_ms (uint32_t time_ms) |
commonErr_t | CMB_wait_us (uint32_t time_us) |
commonErr_t | CMB_setTimeout_ms (uint32_t timeOut_ms) |
commonErr_t | CMB_setTimeout_us (uint32_t timeOut_us) |
commonErr_t | CMB_hasTimeoutExpired () |
commonErr_t | CMB_openLog (const char *filename) |
commonErr_t | CMB_closeLog (void) |
commonErr_t | CMB_writeToLog (ADI_LOGLEVEL level, uint8_t deviceIndex, uint32_t errorCode, const char *comment) |
commonErr_t | CMB_flushLog (void) |
commonErr_t | CMB_regRead (uint32_t offset, uint32_t *data) |
commonErr_t | CMB_regWrite (uint32_t offset, uint32_t data) |
commonErr_t | CMB_memRead (uint32_t offset, uint32_t *data, uint32_t len) |
commonErr_t | CMB_memWrite (uint32_t offset, uint32_t *data, uint32_t len) |
int32_t | platform_init (void) |
Initialize the power controller and set the core and peripherals clock divider. More... | |
int32_t | platform_remove (void) |
Variables | |
ADI_LOGLEVEL | CMB_LOGLEVEL |
Contains type definitions and prototype declarations for common.c.
#define SPIARRAYSIZE 1024 |
#define SPIARRAYTRIPSIZE ((SPIARRAYSIZE / 3) * 3) |
#define THROW_ERROR | ( | ) |
Legal Disclaimer Copyright 2015-2017 Analog Devices Inc. Released under the AD9371 API license, for more information see the "LICENSE.txt" file in this zip file.
enum ADI_ERR |
enum ADI_LOGLEVEL |
enum commonErr_t |
commonErr_t CMB_closeHardware | ( | void | ) |
commonErr_t CMB_closeLog | ( | void | ) |
commonErr_t CMB_flushLog | ( | void | ) |
commonErr_t CMB_hardReset | ( | uint8_t | spiChipSelectIndex | ) |
commonErr_t CMB_hasTimeoutExpired | ( | ) |
commonErr_t CMB_memRead | ( | uint32_t | offset, |
uint32_t * | data, | ||
uint32_t | len | ||
) |
commonErr_t CMB_memWrite | ( | uint32_t | offset, |
uint32_t * | data, | ||
uint32_t | len | ||
) |
commonErr_t CMB_openLog | ( | const char * | filename | ) |
commonErr_t CMB_regRead | ( | uint32_t | offset, |
uint32_t * | data | ||
) |
commonErr_t CMB_regWrite | ( | uint32_t | offset, |
uint32_t | data | ||
) |
commonErr_t CMB_setGPIO | ( | uint32_t | GPIO | ) |
commonErr_t CMB_setSPIChannel | ( | uint16_t | chipSelectIndex | ) |
commonErr_t CMB_setSPIOptions | ( | spiSettings_t * | spiSettings | ) |
commonErr_t CMB_setTimeout_ms | ( | uint32_t | timeOut_ms | ) |
commonErr_t CMB_setTimeout_us | ( | uint32_t | timeOut_us | ) |
commonErr_t CMB_SPIReadByte | ( | spiSettings_t * | spiSettings, |
uint16_t | addr, | ||
uint8_t * | readdata | ||
) |
commonErr_t CMB_SPIReadField | ( | spiSettings_t * | spiSettings, |
uint16_t | addr, | ||
uint8_t * | field_val, | ||
uint8_t | mask, | ||
uint8_t | start_bit | ||
) |
commonErr_t CMB_SPIWriteByte | ( | spiSettings_t * | spiSettings, |
uint16_t | addr, | ||
uint8_t | data | ||
) |
commonErr_t CMB_SPIWriteBytes | ( | spiSettings_t * | spiSettings, |
uint16_t * | addr, | ||
uint8_t * | data, | ||
uint32_t | count | ||
) |
commonErr_t CMB_SPIWriteField | ( | spiSettings_t * | spiSettings, |
uint16_t | addr, | ||
uint8_t | field_val, | ||
uint8_t | mask, | ||
uint8_t | start_bit | ||
) |
commonErr_t CMB_wait_ms | ( | uint32_t | time_ms | ) |
commonErr_t CMB_wait_us | ( | uint32_t | time_us | ) |
commonErr_t CMB_writeToLog | ( | ADI_LOGLEVEL | level, |
uint8_t | deviceIndex, | ||
uint32_t | errorCode, | ||
const char * | comment | ||
) |
int32_t platform_init | ( | void | ) |
Initialize the power controller and set the core and peripherals clock divider.
int32_t platform_remove | ( | void | ) |
ADI_LOGLEVEL CMB_LOGLEVEL |
Legal Disclaimer Copyright 2015-2017 Analog Devices Inc. Released under the AD9371 API license, for more information see the "LICENSE.txt" file in this zip file.