Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
cascoda_dispatch.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cascoda-bm/cascoda_dispatch.h"
#include "cascoda-bm/cascoda_interface_core.h"
#include "cascoda-bm/cascoda_spi.h"
#include "cascoda-bm/cascoda_wait.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "mac_messages.h"
Include dependency graph for cascoda_dispatch.c:

Classes

struct  MDR_CacheItem
 

Enumerations

enum  MDR_Cache { MDR_CacheSize = 15 }
 
enum  MDR_CacheType { MDR_CacheTypePCPS = 0 , MDR_CacheTypeMCPS = 1 }
 

Functions

void DISPATCH_ReadCA821x (struct ca821x_dev *pDeviceRef)
 Read SPI messages from the ca821x. More...
 
ca_error DISPATCH_ToCA821x (const uint8_t *buf, u8_t *response, struct ca821x_dev *pDeviceRef)
 Send Request to CA-821x over SPI. More...
 
ca_error ca821x_api_downstream (const uint8_t *buf, uint8_t *response, struct ca821x_dev *pDeviceRef)
 Function for downstream api interface. More...
 
ca_error DISPATCH_FromCA821x (struct ca821x_dev *pDeviceRef)
 process and dispatch on any received SPI messages from the ca821x More...
 

Enumeration Type Documentation

◆ MDR_Cache

enum MDR_Cache
Enumerator
MDR_CacheSize 

◆ MDR_CacheType

Enumerator
MDR_CacheTypePCPS 
MDR_CacheTypeMCPS