![]() |
EVE 1.0
|
![]() |
Data Structures | |
struct | iqrf_dpa_header_t |
struct | iqrf_dpa_request_t |
struct | iqrf_dpa_confirmation_t |
struct | iqrf_dpa_response_t |
struct | iqrf_dpa_broadcast_t |
struct | iqrf_global_handlers_t |
struct | iqrf_state_t |
struct | iqrf_t |
IQRF instance structure. More... | |
Macros | |
#define | IQRF_PNUM_BRIDGE (0x30) |
Custom periferal number for Bridge. | |
#define | IQRF_SPI_BUFFER_LENGTH (68) |
SPI buffer length (max IQRF packet size + 4) | |
#define | IQRF_RESPONSE_TIMESLOT_LENGTH_WORST_ESTIMATE (5) |
Worst estimate for response timeslot length in 10 ms. intervals. | |
#define | IQRF_INVALID_TIMESTAMP (0xFFFFFFFF) |
Value used as an invalid timestamp value. | |
Typedefs | |
typedef void(* | iqrf_response_handler_t) (const struct iqrf_t *Iqrf, enum iqrf_response_type_t Type, const struct iqrf_dpa_response_t *Dpa, uint8_t Length) |
Enumerations |
Functions | |
void | IqrfInterruptCb (const struct iqrf_t *Iqrf) |
void | IqrfInit (const struct iqrf_t *Iqrf) |
bool | IqrfIsBusy (const struct iqrf_t *Iqrf) |
bool | IqrfSendDpaRequest (const struct iqrf_t *Iqrf, iqrf_response_handler_t ResponseHandler, const struct iqrf_dpa_request_t *Request, uint8_t DataLen) |
bool | IqrfSendDpaResponse (const struct iqrf_t *Iqrf, const uint8_t *Data, uint8_t DataLen) |
bool | IqrfSendDpaError (const struct iqrf_t *Iqrf, uint8_t ErrorCode) |
bool | IqrfSendFrcResponse (const struct iqrf_t *Iqrf, uint16_t Status) |
uint32_t | IqrfGetExpectedRoutingTime (uint8_t HopsRequest, uint8_t TimeslotRequest, uint8_t HopsResponse, uint8_t TimeslotResponse) |
uint32_t | IqrfGetExpectedRoutingCompleteTimestamp (const struct iqrf_t *Iqrf) |
typedef void(* iqrf_response_handler_t) (const struct iqrf_t *Iqrf, enum iqrf_response_type_t Type, const struct iqrf_dpa_response_t *Dpa, uint8_t Length) |
Per-request handler (callback), which receives notification about the request lifecycle
Iqrf | IQRF instance |
Type | Type of notification |
Dpa | Pointer to the DPA response structure. It can contain iqrf_dpa_confirmation_t as well. |
Length | Length of the data in the DPA response. |
enum iqrf_response_type_t |
void IqrfInterruptCb | ( | const struct iqrf_t * | Iqrf | ) |
IQRF interrupt handler
Iqrf | IQRF instance |
void IqrfInit | ( | const struct iqrf_t * | Iqrf | ) |
Init an IQRF driver instance
Iqrf | IQRF instance |
bool IqrfIsBusy | ( | const struct iqrf_t * | Iqrf | ) |
Checks if an IQRF driver is busy
Iqrf | IQRF instance |
bool IqrfSendDpaRequest | ( | const struct iqrf_t * | Iqrf, |
iqrf_response_handler_t | ResponseHandler, | ||
const struct iqrf_dpa_request_t * | Request, | ||
uint8_t | DataLen | ||
) |
Send a DPA request to the IQRF module
Iqrf | IQRF instance |
ResponseHandler | A handler (callback), which receives notification about the request lifecycle |
Request | DPA request |
DataLen | Length of data field in the DPA request |
bool IqrfSendDpaResponse | ( | const struct iqrf_t * | Iqrf, |
const uint8_t * | Data, | ||
uint8_t | DataLen | ||
) |
Send a response to a DPA request
Iqrf | IQRF instance |
Data | DPA response data |
DataLen | Length of the DPA response data |
bool IqrfSendDpaError | ( | const struct iqrf_t * | Iqrf, |
uint8_t | ErrorCode | ||
) |
Send a response with error code
Iqrf | IQRF instance |
ErrorCode | Error code |
bool IqrfSendFrcResponse | ( | const struct iqrf_t * | Iqrf, |
uint16_t | Status | ||
) |
Send a response to a FRC request
Iqrf | IQRF instance |
Status | FRC status |
uint32_t IqrfGetExpectedRoutingTime | ( | uint8_t | HopsRequest, |
uint8_t | TimeslotRequest, | ||
uint8_t | HopsResponse, | ||
uint8_t | TimeslotResponse | ||
) |
Get time in system ticks required to complete a routing with the given parameters
HopsRequest | HopsRequest field of the confirmation message |
TimeslotRequest | TimeslotRequest field of the confirmation message |
HopsResponse | HopsResponse field of the confirmation message |
TimeslotResponse | Expected duration of the response message, number of timeslots |
uint32_t IqrfGetExpectedRoutingCompleteTimestamp | ( | const struct iqrf_t * | Iqrf | ) |
Get point in time when routing is going to be completed.
Iqrf | IQRF instance |