no-OS
|
Contains Mykonos API common wrapper functions for user hardware platform drivers. More...
#include <stdio.h>
#include <time.h>
#include <errno.h>
#include <stdint.h>
#include <stdlib.h>
#include "common.h"
#include "no_os_spi.h"
#include "xilinx_gpio.h"
#include "no_os_gpio.h"
#include "no_os_delay.h"
#include "parameters.h"
#include <xparameters.h>
#include "xilinx_spi.h"
Functions | |
int32_t | platform_init (void) |
Initialize the power controller and set the core and peripherals clock divider. More... | |
int32_t | platform_remove (void) |
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_writeToLog (ADI_LOGLEVEL level, uint8_t deviceIndex, uint32_t errorCode, const char *comment) |
commonErr_t | CMB_openLog (const char *filename) |
commonErr_t | CMB_closeLog (void) |
commonErr_t | CMB_flushLog (void) |
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_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) |
Variables | |
ADI_LOGLEVEL | CMB_LOGLEVEL = ADIHAL_LOG_NONE |
struct no_os_spi_desc * | spi_ad_desc |
struct no_os_gpio_desc * | gpio_ad9371_resetb |
struct no_os_gpio_desc * | gpio_ad9528_resetb |
struct no_os_gpio_desc * | gpio_ad9528_sysref_req |
Contains Mykonos API common wrapper functions for user hardware platform drivers.
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 = ADIHAL_LOG_NONE |
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.
struct no_os_gpio_desc* gpio_ad9371_resetb |
struct no_os_gpio_desc* gpio_ad9528_resetb |
struct no_os_gpio_desc* gpio_ad9528_sysref_req |
struct no_os_spi_desc* spi_ad_desc |