COSA
An Object-Oriented Platform for Arduino Programming
|
#include <CC3000.hh>
Public Types | |
enum | Security { NO_SECURITY_TYPE = 0x0, WEP_SECURITY_TYPE = 0x1, WPA_SECURITY_TYPE = 0x2, WPA2_SECURITY_TYPE = 0x3 } |
enum | { WLAN_STATUS_DISCONNECTED = 0, WLAN_STATUS_SCANNING = 1, WLAN_STATUS_CONNECTING = 2, WLAN_STATUS_CONNECTED = 3 } |
enum | { NVMEM_NVS_FILEID = 0, NVMEM_NVS_SHADOW_FILEID = 1, NVMEM_WLAN_CONFIG_FILEID = 2, NVMEM_WLAN_CONFIG_SHADOW_FILEID = 3, NVMEM_WLAN_DRIVER_SP_FILEID = 4, NVMEM_WLAN_FW_SP_FILEID = 5, NVMEM_MAC_FILEID = 6, NVMEM_FRONTEND_VARS_FILEID = 7, NVMEM_IP_CONFIG_FILEID = 8, NVMEM_IP_CONFIG_SHADOW_FILEID = 9, NVMEM_BOOTLOADER_SP_FILEID = 10, NVMEM_RM_FILEID = 11, NVMEM_AES128_KEY_FILEID = 12, NVMEM_SHARED_MEM_FILEID = 13, NVMEM_USER_FILE_1_FILEID = 14, NVMEM_USER_FILE_2_FILEID = 15, NVMEM_MAX_ENTRY = 16 } |
enum | { SOL_SOCKET = 0xffff } |
enum | { SOCKOPT_RECV_NONBLOCK = 0, SOCKOPT_RECV_TIMEOUT = 1, SOCKOPT_ACCEPT_NONBLOCK = 2 } |
Public Member Functions | |
CC3000 (Board::DigitalPin cs, Board::ExternalInterruptPin irq, Board::DigitalPin vbat, SPI::Clock rate=SPI::DEFAULT_CLOCK) | |
bool | begin_P (str_P hostname, uint16_t timeout=5000) |
Socket * | socket (Socket::Protocol proto, uint16_t port=0, uint8_t flag=0) |
int | service (uint16_t timeout=100) |
bool | end () |
void | addr (uint8_t ip[4], uint8_t subnet[4]) |
void | mac_addr (uint8_t mac[6]) |
void | dns_addr (uint8_t ip[4]) |
int | wlan_connect (Security type, str_P ssid, str_P bssid, str_P key) |
int | wlan_ioctl_set_scanparam (const hci_cmnd_wlan_ioctl_set_scanparam_t *param=NULL) |
int | wlan_ioctl_statusget () |
int | wlan_ioctl_set_connection_policy (bool should_connect_to_open_ap, bool should_use_fast_connect, bool auto_start_use_profiles) |
int | wlan_ioctl_get_scan_results (hci_evnt_wlan_ioctl_get_scan_results_t &ret) |
int | wlan_ioctl_del_profile (uint8_t index) |
int | wlan_set_event_mask (uint16_t mask) |
int | nvmem_read (uint8_t fileid, void *dst, uint32_t src, size_t n) |
int | simple_link_start (uint8_t src) |
int | read_buffer_size (uint8_t &count, uint16_t &size) |
int | read_sp_version (uint8_t &package_id, uint8_t &package_build_nr) |
int | socket (int domain, int type, int protocol) |
int | setsockopt (int hndl, int level, int optname, const void *optval, size_t optlen) |
int | connect (int hndl, uint8_t ip[4], int port) |
int | select (int hndls, uint32_t &readhnds, uint32_t &writehndls, uint32_t &errorhndls, uint32_t sec=0UL, uint32_t us=0UL) |
int | recv (int hndl, void *buf, size_t size) |
int | send (int hndl, const void *buf, size_t size) |
int | bind (int hndl, int port) |
int | listen (int hndl) |
int | accept (int hndl, uint8_t ip[4], int &port) |
int | close (int hndl) |
int | read (uint16_t &op, void *args, uint8_t len) |
int | write (uint8_t type, uint16_t op, const void *args, uint8_t len) |
int | write (uint8_t type, uint16_t op, const void *args, uint8_t len, bool progmem) |
int | write_P (uint8_t type, uint16_t op, const void *args, uint8_t len) |
int | issue (uint16_t op, const void *args=NULL, uint8_t len=0) |
int | issue_P (uint16_t op, const void *args, uint8_t len) |
int | await (uint16_t op, void *args=NULL, uint8_t len=0) |
int | write_data (uint8_t op, const void *args, uint8_t args_len, const void *data, uint16_t data_len) |
int | write_data (uint8_t op, const void *args, uint8_t args_len, const void *data, uint16_t data_len, bool progmem) |
int | write_data_P (uint8_t op, const void *args, uint8_t args_len, const void *data, uint16_t data_len) |
int | read_data (uint8_t op, void *args, uint8_t args_len, void *data, uint16_t data_len) |
void | enable () |
void | disable () |
bool | is_available () |
void | event_handler (Event::Handler *handler) |
void | set_clock (Clock rate) |
void | set_clock (uint32_t freq) |
Static Public Member Functions | |
static Clock | clock (uint32_t freq) |
static Clock | cycle (uint16_t ns) |
Static Public Attributes | |
static const uint32_t | HCI_CMND_WLAN_IOCTL_SET_SCANPARAM_MAGIC = 0x00000024L |
static const hci_cmnd_wlan_ioctl_set_scanparam_t | DEFAULT_SCANPARAM |
Protected Types | |
enum | { OPTVAL_MAX = 4 } |
enum | { SPI_OP_WRITE = 0x01, SPI_OP_REPLY = 0x02, SPI_OP_READ = 0x03 } |
enum | { HCI_TYPE_CMND = 0x01, HCI_TYPE_DATA = 0x02, HCI_TYPE_PATCH = 0x03, HCI_TYPE_EVNT = 0x04 } |
Protected Member Functions | |
bool | is_socket (int hndl) |
bool | is_active (int hndl) |
bool | socket_state (int hndl, bool state) |
Protected Attributes | |
OutputPin | m_vbat |
UnsolicitedEvent | m_evnt_handler |
uint8_t | m_mac [6] |
uint8_t | m_ip [4] |
uint8_t | m_subnet [4] |
uint8_t | m_gateway [4] |
uint8_t | m_dns [4] |
uint16_t | BUFFER_MAX |
uint8_t | BUFFER_COUNT |
uint8_t | m_buffer_avail |
Driver | m_socket [SOCKET_MAX] |
uint16_t | m_active_set |
IRQPin | m_irq |
volatile bool | m_available |
uint16_t | m_timeout |
Event::Handler * | m_event_handler |
uint8_t | m_evnt [EVNT_MAX] |
Driver * | m_next |
List of drivers. More... | |
OutputPin | m_cs |
Device chip select pin. More... | |
Pulse | m_pulse |
Chip select pulse width. More... | |
uint8_t | m_spcr |
SPI/SPCR hardware control register setting. More... | |
uint8_t | m_spsr |
SPI/SPSR hardware status register. More... | |
Static Protected Attributes | |
static const uint16_t | DEFAULT_TIMEOUT = 300 |
static const int | SOCKET_MAX = 8 |
static const uint16_t | HCI_CMND_WLAN_CONNECT = 0x0001 |
static const uint32_t | HCI_CMND_WLAN_CONNECT_MAGIC = 0x0000001cL |
static const size_t | HCI_CMND_WLAN_CONNECT_BSSID_MAX = 6 |
static const size_t | HCI_CMND_WLAN_CONNECT_SSID_MAX = 32 |
static const size_t | HCI_CMND_WLAN_CONNECT_KEY_MAX = 32 |
static const size_t | HCI_CMND_WLAN_CONNECT_DATA_MAX = 64 |
static const uint16_t | HCI_CMND_WLAN_DISCONNECT = 0x0002 |
static const uint16_t | HCI_CMND_WLAN_IOCTL_SET_SCANPARAM = 0x0003 |
static const uint16_t | HCI_CMND_WLAN_IOCTL_SET_CONNECTION_POLICY = 0x0004 |
static const uint16_t | HCI_CMND_WLAN_IOCTL_ADD_PROFILE = 0x0005 |
static const uint16_t | HCI_CMND_WLAN_IOCTL_DEL_PROFILE = 0x0006 |
static const uint16_t | HCI_CMND_WLAN_IOCTL_GET_SCAN_RESULTS = 0x0007 |
static const uint16_t | HCI_CMND_WLAN_SET_EVENT_MASK = 0x0008 |
static const uint16_t | HCI_CMND_WLAN_IOCTL_STATUSGET = 0x0009 |
static const uint16_t | HCI_CMND_WLAN_IOCTL_SMART_CONFIG_START = 0x000A |
static const uint16_t | HCI_CMND_WLAN_IOCTL_SMART_CONFIG_STOP = 0x000B |
static const uint16_t | HCI_CMND_WLAN_IOCTL_SMART_CONFIG_SET_PREFIX = 0x000C |
static const uint16_t | HCI_CMND_NVMEM_READ = 0x0201 |
static const uint16_t | HCI_CMND_NVMEM_CREATE_ENTRY = 0x0203 |
static const uint16_t | HCI_CMND_READ_SP_VERSION = 0x0207 |
static const uint16_t | HCI_CMND_SOCKET = 0x1001 |
static const uint16_t | HCI_CMND_BIND = 0x1002 |
static const uint16_t | HCI_CMND_RECV = 0x1004 |
static const uint16_t | HCI_CMND_ACCEPT = 0x1005 |
static const uint16_t | HCI_CMND_LISTEN = 0x1006 |
static const uint32_t | HCI_CMND_LISTEN_QUEUE_MAX = 4 |
static const uint16_t | HCI_CMND_CONNECT = 0x1007 |
static const uint16_t | HCI_CMND_SELECT = 0x1008 |
static const uint32_t | HCI_CMND_SELECT_MAGIC = 0x00000014 |
static const uint16_t | HCI_CMND_SETSOCKOPT = 0x1009 |
static const uint32_t | HCI_CMND_SETSOCKOPT_MAGIC = 0x8 |
static const uint16_t | HCI_CMND_GETSOCKOPT = 0x100A |
static const uint16_t | HCI_CMND_CLOSE_SOCKET = 0x100B |
static const uint16_t | HCI_CMND_RECVFROM = 0x100D |
static const uint16_t | HCI_CMND_GETHOSTBYNAME = 0x100D |
static const uint16_t | HCI_CMND_GETHOSTBYNAME_MAGIC = 8 |
static const uint16_t | HOSTNAME_MAX = 32 |
static const uint16_t | HCI_CMND_NETAPP_PING_SEND = 0x2002 |
static const uint16_t | HCI_CMND_NETAPP_PING_REPORT = 0x2003 |
static const uint16_t | HCI_CMND_NETAPP_PING_STOP = 0x2004 |
static const uint16_t | HCI_CMND_NETAPP_GETIPCONFIG = 0x2005 |
static const uint16_t | HCI_CMND_NETAPP_ARP_FLUSH = 0x2006 |
static const uint16_t | HCI_CMND_NETAPP_SET_DEBUG_LEVEL = 0x2008 |
static const uint16_t | HCI_CMND_SIMPLE_LINK_START = 0x4000 |
static const uint16_t | HCI_CMND_READ_BUFFER_SIZE = 0x400B |
static const uint8_t | HCI_DATA_SEND = 0x81 |
static const uint32_t | HCI_DATA_SEND_MAGIC = 0x0000000C |
static const uint8_t | HCI_DATA_SENDTO = 0x83 |
static const uint8_t | HCI_DATA_RECV = 0x85 |
static const uint8_t | HCI_DATA_NVMEM_WRITE = 0x90 |
static const uint8_t | HCI_DATA_NVMEM_READ = 0x91 |
static const uint16_t | HCI_EVNT_ANY = 0x0000 |
static const uint16_t | HCI_EVNT_WLAN_CONNECT = 0x0001 |
static const uint16_t | HCI_EVNT_WLAN_DISCONNECT = 0x0002 |
static const uint16_t | HCI_EVNT_WLAN_IOCTL_SET_SCANPARAM = 0x0003 |
static const uint16_t | HCI_EVNT_WLAN_IOCTL_SET_CONNECTION_POLICY = 0x0004 |
static const uint16_t | HCI_EVNT_WLAN_IOCTL_ADD_PROFILE = 0x0005 |
static const uint16_t | HCI_EVNT_WLAN_IOCTL_DEL_PROFILE = 0x0006 |
static const uint16_t | HCI_EVNT_WLAN_IOCTL_GET_SCAN_RESULTS = 0x0007 |
static const uint16_t | HCI_EVNT_WLAN_SET_EVENT_MASK = 0x0008 |
static const uint16_t | HCI_EVNT_WLAN_IOCTL_STATUSGET = 0x0009 |
static const uint16_t | HCI_EVNT_WLAN_IOCTL_SMART_CONFIG_SET_PREFIX = 0x000C |
static const uint16_t | HCI_EVNT_NVMEM_READ = 0x0201 |
static const uint16_t | HCI_EVNT_READ_SP_VERSION = 0x0207 |
static const uint16_t | HCI_EVNT_PATCHES_REQ = 0x1000 |
static const uint16_t | HCI_EVNT_SOCKET = 0x1001 |
static const uint16_t | HCI_EVNT_BIND = 0x1002 |
static const uint16_t | HCI_EVNT_SEND = 0x1003 |
static const uint16_t | HCI_EVNT_RECV = 0x1004 |
static const uint16_t | HCI_EVNT_ACCEPT = 0x1005 |
static const uint16_t | HCI_EVNT_LISTEN = 0x1006 |
static const uint16_t | HCI_EVNT_CONNECT = 0x1007 |
static const uint16_t | HCI_EVNT_SELECT = 0x1008 |
static const uint16_t | HCI_EVNT_SETSOCKOPT = 0x1009 |
static const uint16_t | HCI_EVNT_CLOSE_SOCKET = 0x100B |
static const uint16_t | HCI_EVNT_DATA_SENDTO = 0x100F |
static const uint16_t | HCI_EVNT_NETAPP_PING_SEND = 0x2002 |
static const uint16_t | HCI_EVNT_NETAPP_PING_REPORT = 0x2003 |
static const uint16_t | HCI_EVNT_NETAPP_PING_STOP = 0x2004 |
static const uint16_t | HCI_EVNT_NETAPP_GETIPCONFIG = 0x2005 |
static const uint16_t | HCI_EVNT_DATA_UNSOL_FREE_BUFF = 0x4100 |
static const uint16_t | HCI_EVNT_WLAN_UNSOL_CONNECT = 0x8001 |
static const uint16_t | HCI_EVNT_WLAN_UNSOL_DISCONNECT = 0x8002 |
static const uint16_t | HCI_EVNT_WLAN_UNSOL_DHCP = 0x8010 |
static const uint16_t | HCI_EVNT_WLAN_UNSOL_PING_REPORT = 0x8040 |
static const uint16_t | HCI_EVNT_WLAN_UNSOL_SMART_CONFIG_DONE = 0x8080 |
static const uint16_t | HCI_EVNT_WLAN_UNSOL_KEEPALIVE = 0x8200 |
static const uint16_t | HCI_EVNT_WLAN_UNSOL_TCP_CLOSE_WAIT = 0x8800 |
static const uint16_t | HCI_EVNT_SIMPLE_LINK_START = 0x4000 |
static const uint16_t | HCI_EVNT_READ_BUFFER_SIZE = 0x400B |
static const uint8_t | EVNT_MAX = 64 |
Cosa TI CC3000 WiFi module device driver class. Provides an implementation of the Cosa Socket and Cosa IOStream::Device classes. A socket may be bound directly to a Cosa IOStream.
anonymous enum |
anonymous enum |
anonymous enum |
|
protectedinherited |
|
protectedinherited |
enum CC3000::Security |
WLAN Security types for wlan_connect().
Enumerator | |
---|---|
NO_SECURITY_TYPE | |
WEP_SECURITY_TYPE | |
WPA_SECURITY_TYPE | |
WPA2_SECURITY_TYPE |
|
inline |
int CC3000::accept | ( | int | hndl, |
uint8_t | ip[4], | ||
int & | port | ||
) |
Accept socket connect request. Socket must be in listen mode. Returns socket handle or negative error code.
[in] | hndl | socket descriptor. |
[in] | ip | connecting client address. |
[in] | port | connect client port. |
Definition at line 747 of file CC3000.cpp.
|
inline |
|
inherited |
Await HCI event and arguments. Returns argument length or negative error code. The given argument block must be able to hold incoming event message. A default event block is used when passer NULL.
[in] | op | HCI event code required. |
[in] | args | pointer to argument block. |
[in] | len | max number of bytes in argument block. |
bool CC3000::begin_P | ( | str_P | hostname, |
uint16_t | timeout = 5000 |
||
) |
Initiate CC3000 device driver with given hostname. Network address, subnet mask and gateway should be obtained from DNS. Returns true if successful otherwise false.
[in] | hostname | string in program memory. |
[in] | timeout | retry timeout period. |
Definition at line 268 of file CC3000.cpp.
int CC3000::bind | ( | int | hndl, |
int | port | ||
) |
Bind socket to given port and . Returns zero or negative error code.
[in] | hndl | socket descriptor. |
[in] | port | to listen on. |
Definition at line 719 of file CC3000.cpp.
|
inlinestaticinherited |
int CC3000::close | ( | int | hndl | ) |
Close socket. Returns zero or negative error code.
[in] | hndl | socket descriptor. |
Definition at line 770 of file CC3000.cpp.
int CC3000::connect | ( | int | hndl, |
uint8_t | ip[4], | ||
int | port | ||
) |
Connect to given server with given address and port. Returns zero or negative error code.
[in] | hndl | socket descriptor. |
[in] | ip | address of server. |
[in] | port | of server. |
Definition at line 658 of file CC3000.cpp.
|
inlinestaticinherited |
|
inlineinherited |
|
inline |
|
inlineinherited |
bool CC3000::end | ( | ) |
Terminate CC3000 device driver. Closes all active sockets. Return true if successful otherwise false.
Definition at line 363 of file CC3000.cpp.
|
inlineinherited |
|
inlineprotected |
|
inlineinherited |
|
inlineprotected |
|
inlineinherited |
|
inlineinherited |
int CC3000::listen | ( | int | hndl | ) |
Put socket in listen mode (server). Returns zero or negative error code.
[in] | hndl | socket descriptor. |
Definition at line 733 of file CC3000.cpp.
|
inline |
int CC3000::nvmem_read | ( | uint8_t | fileid, |
void * | dst, | ||
uint32_t | src, | ||
size_t | n | ||
) |
Read CC300 non-volatile memory (EEPROM) block from given source in given file to given destination buffer.
[in] | fileid | file identity. |
[in] | dst | destination buffer. |
[in] | src | source offset in file. |
[in] | n | number of bytes to read. |
Definition at line 523 of file CC3000.cpp.
|
inherited |
Read HCI operation and arguments. Returns argument length or negative error code. The given argument block must be able to hold incoming packet.
[out] | op | HCI operation command. |
[in] | args | pointer to argument block. |
[in] | len | max number of bytes in argument block. |
int CC3000::read_buffer_size | ( | uint8_t & | count, |
uint16_t & | size | ||
) |
Query CC3000 for number of buffers and their size. Returns zero(0) or negative error code.
[out] | count | number of buffers. |
[out] | bytes | per buffer. |
Definition at line 579 of file CC3000.cpp.
|
inherited |
Issue HCI read data command message and arguments. Returns payload length or negative error code.
[in] | op | HCI data operation command. |
[in] | args | pointer to command argument block. |
[in] | args_len | number of bytes in command argument block. |
[in] | data | pointer to data block. |
[in] | data_len | number of bytes in data block. |
int CC3000::read_sp_version | ( | uint8_t & | package_id, |
uint8_t & | package_build_nr | ||
) |
Query CC3000 for service package information; package identification and build number. Returns zero(0) or negative error code.
[out] | package_id. | |
[out] | package_build_nr. |
Definition at line 594 of file CC3000.cpp.
int CC3000::recv | ( | int | hndl, |
void * | buf, | ||
size_t | size | ||
) |
Receive message to given buffer with given size. Returns number of bytes received or negative error code.
[in] | hndl | socket descriptor. |
[in] | buf | message buffer. |
[in] | size | of message buffer. |
Definition at line 674 of file CC3000.cpp.
int CC3000::select | ( | int | hndls, |
uint32_t & | readhnds, | ||
uint32_t & | writehndls, | ||
uint32_t & | errorhndls, | ||
uint32_t | sec = 0UL , |
||
uint32_t | us = 0UL |
||
) |
Poll given set of handles for waiting read, write or errors operations. Returns zero and socket handle set otherwise a negative error code.
[in] | hndls | number of handles in set (max handle number + 1). |
[in,out] | readhndls | read handle set. |
[in,out] | writehndls | write handle set. |
[in,out] | errorhndls | error handle set. |
[in] | sec | timeout in seconds. |
[in] | us | timeout in micro-seconds. |
Definition at line 639 of file CC3000.cpp.
int CC3000::send | ( | int | hndl, |
const void * | buf, | ||
size_t | size | ||
) |
Send message from given buffer with given size. Returns number of bytes sent or negative error code.
[in] | hndl | socket descriptor. |
[in] | buf | message buffer. |
[in] | size | of message buffer. |
Definition at line 701 of file CC3000.cpp.
int CC3000::service | ( | uint16_t | timeout = 100 | ) |
Service device events with given timeout.
[in] | timeout | in milli-seconds. |
Definition at line 352 of file CC3000.cpp.
|
inherited |
|
inlineinherited |
int CC3000::setsockopt | ( | int | hndl, |
int | level, | ||
int | optname, | ||
const void * | optval, | ||
size_t | optlen | ||
) |
Set socket option. Return zero if successful otherwise a negative error code.
[in] | hndl | socket handle. |
[in] | level | of the option. |
[in] | optname | option name. |
[in] | optval | pointer to option block. |
[in] | optlen | length of option block. |
Definition at line 624 of file CC3000.cpp.
int CC3000::simple_link_start | ( | uint8_t | src | ) |
Initialize CC3000 internal modules. Use given patch source (0x00 for NVMEM, 0x01 for host, 0x02 for no patches). Returns zero or negative error code.
[in] | src | patch source. |
Definition at line 544 of file CC3000.cpp.
Socket * CC3000::socket | ( | Socket::Protocol | proto, |
uint16_t | port = 0 , |
||
uint8_t | flag = 0 |
||
) |
Allocate socket with the given protocol, port and flags. Returns pointer to socket. The socket is deallocated with Socket::close().
[in] | proto | socket protocol. |
[in] | port | number (Default 0). |
[in] | flag. |
Definition at line 315 of file CC3000.cpp.
int CC3000::socket | ( | int | domain, |
int | type, | ||
int | protocol | ||
) |
Create socket for given domain, type and protocol. Ruturn socket descriptor or negative error code.
[in] | domain | (AF_INET). |
[in] | type | (SOCK_STREAM, SOCK_DGRAM or SOCK_RAW). |
[in] | protocol | (IPPROTO_TCP, IPPROTO_UDP, IPPROTO_RAW). |
Definition at line 609 of file CC3000.cpp.
|
inlineprotected |
Instruct the CC3000 to connect to a given access point. Returns zero if successful otherwise a negative error code.
[in] | type | of security. |
[in] | ssid | string in program memory. |
[in] | bssid | string in program memory (or NULL). |
[in] | key | string in program memory. |
Definition at line 371 of file CC3000.cpp.
int CC3000::wlan_ioctl_del_profile | ( | uint8_t | index | ) |
int CC3000::wlan_ioctl_get_scan_results | ( | hci_evnt_wlan_ioctl_get_scan_results_t & | ret | ) |
Get the results from network scan initiated by calling wlan_ioctl_set_scanparam(). Returns value in event structure. The first call after the scan will have the highest network id and following calls with have network id lower until zero, which indicates the last entry.
Definition at line 479 of file CC3000.cpp.
int CC3000::wlan_ioctl_set_connection_policy | ( | bool | should_connect_to_open_ap, |
bool | should_use_fast_connect, | ||
bool | auto_start_use_profiles | ||
) |
Set policy to control if and how the CC3000 will try to automatically associate to an access point.
Definition at line 459 of file CC3000.cpp.
int CC3000::wlan_ioctl_set_scanparam | ( | const hci_cmnd_wlan_ioctl_set_scanparam_t * | param = NULL | ) |
Trigger CC3000 to scan available access points with given parameter block in program memory.
[in] | param | block. |
Definition at line 428 of file CC3000.cpp.
int CC3000::wlan_ioctl_statusget | ( | ) |
int CC3000::wlan_set_event_mask | ( | uint16_t | mask | ) |
|
inlineinherited |
|
inherited |
Write given HCI type operation and arguments. Returns argument length or negative error code.
[in] | type | HCI message type. |
[in] | op | HCI operation command. |
[in] | args | pointer to argument block (program memory). |
[in] | len | number of bytes in argument block. |
[in] | progmem | argment block in program memory. |
|
inlineinherited |
Write data with given data operation code, argument block and data payload. Returns number of bytes written or negative error code.
[in] | op | data operation code. |
[in] | args | pointer to argument block. |
[in] | args_len | number of bytes in argument block. |
[in] | data | pointer to data block |
[in] | data_len | number of bytes in data block. |
|
inherited |
Write data with given data operation code, argument block and data payload in given memory source. Returns number of bytes written or negative error code.
[in] | op | data operation code. |
[in] | args | pointer to argument block. |
[in] | args_len | number of bytes in argument block. |
[in] | data | pointer to data block. |
[in] | data_len | number of bytes in data block. |
[in] | progmem | flag data block in program memory. |
|
inlineinherited |
Write data with given data operation code, argument block and data payload in program memory. Returns number of bytes written or negative error code.
[in] | op | data operation code. |
[in] | args | pointer to argument block. |
[in] | args_len | number of bytes in argument block. |
[in] | data | pointer to data block in program memory. |
[in] | data_len | number of bytes in data block. |
|
inlineinherited |
Write given HCI type operation and arguments in program memory. Returns argument length or negative error code.
[in] | type | HCI message type. |
[in] | op | HCI operation command. |
[in] | args | pointer to argument block in program memory. |
[in] | len | number of bytes in argument block. |
|
protected |
|
protected |
|
static |
|
staticprotected |
|
staticprotectedinherited |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
HCI Command read buffer size. http://processors.wiki.ti.com/index.php/CC3000_HCI_CMND_messages#HCI_CMND_READ_BUFFER_SIZE_.280x400B.29
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
HCI Command WLAN ioctl del profile. http://processors.wiki.ti.com/index.php/CC3000_HCI_CMND_messages#HCI_CMND_WLAN_IOCTL_DEL_PROFILE_.280x0006.29
|
staticprotected |
HCI Command WLAN ioctl get scan results. http://processors.wiki.ti.com/index.php/CC3000_HCI_CMND_messages#HCI_CMND_WLAN_IOCTL_GET_SCAN_RESULTS_.280x0007.29
|
staticprotected |
HCI Command WLAN ioctl set connection policy. http://processors.wiki.ti.com/index.php/CC3000_HCI_CMND_messages#HCI_CMND_WLAN_IOCTL_SET_CONNECTION_POLICY_.280x0004.29
|
staticprotected |
HCI Command WLAN ioctl set scanparam. http://processors.wiki.ti.com/index.php/CC3000_HCI_CMND_messages#HCI_CMND_WLAN_IOCTL_SET_SCANPARAM_.280x0003.29
|
static |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
HCI Command WLAN set event mask. http://processors.wiki.ti.com/index.php/CC3000_HCI_CMND_messages#HCI_CMND_WLAN_SET_EVENT_MASK_.280x0008.29
|
staticprotected |
|
staticprotected |
|
staticprotected |
HCI Data Command recv. http://processors.wiki.ti.com/index.php/CC3000_HCI_DATA_messages
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
HCI Event WLAN ioctl del profile http://processors.wiki.ti.com/index.php/CC3000_HCI_EVNT_messages
|
staticprotected |
|
staticprotected |
HCI Event WLAN ioctl set connection policy http://processors.wiki.ti.com/index.php/CC3000_HCI_EVNT_messages
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
HCI Event WLAN set event mask http://processors.wiki.ti.com/index.php/CC3000_HCI_EVNT_messages
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
HCI Event WLAN unsol smart config done. http://processors.wiki.ti.com/index.php/CC3000_HCI_EVNT_messages#HCI_EVNT_WLAN_UNSOL_SMART_CONFIG_DONE_.280x8080.29
|
staticprotected |
|
protected |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
staticprotected |