SDK4.0 This document shows Ameba SDK 4.0 APIs

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures
spdio_api.h File Reference

This file provides following mbed SPDIO API. More...

`#include <osdep_service.h>`

## Data Structures
struct | spdio_buf_t
struct | spdio_t

## Ameba Common
#define | SPDIO_API_DBG
#define | SPDIO_API_PRINTK(fmt, args...) printf(fmt"\r\n",## args)
#define | _SPDIO_API_PRINTK(fmt, args...) printf(fmt,## args)
#define | SPDIO_DMA_ALIGN_4 4
#define | SPDIO_RX_BUFSZ_ALIGN(x) ((((x-1)>>6)+1)<<6)
#define | SPDIO_RXDESC_SZ 24
enum | spdio_rx_data_t { SPDIO_RX_DATA_NULL = 0x00, SPDIO_RX_DATA_ETH = 0x83, SPDIO_RX_DATA_ATCMD = 0x11, SPDIO_RX_DATA_USER = 0x41 }
enum | spdio_tx_data_t { SPDIO_TX_DATA_NULL = 0x00, SPDIO_TX_DATA_ETH = 0x82, SPDIO_TX_DATA_ATCMDRSP = 0x10, SPDIO_TX_DATA_USER = 0x40 }
struct spdio_t * | g_spdio_priv
| an obj which will be used to initialize sdio interface so it must be initialized before calling HalSdioInit();
void | spdio_structinit (struct spdio_t *obj)
| Gets example setting for spdio obj. More...
void | spdio_init (struct spdio_t *obj)
| Initialize spdio interface. More...
void | spdio_deinit (struct spdio_t *obj)
| Deinitialize spdio interface. More...
s8 | spdio_tx (struct spdio_t *obj, struct spdio_buf_t *pbuf)
| spdio write function. More...

## Detailed Description

This file provides following mbed SPDIO API.

mbed Microcontroller Library

Author

Version
  V1.0.0

Attention

Copyright (c) 2006-2013 ARM Limited

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.