#include "common.h"Go to the source code of this file.
Data Structures | |
| struct | Transform |
| Structure which contains transform types. More... | |
| struct | Protocol |
| Structure which contains protocol types and list of associated transforms. More... | |
| struct | Proposal |
| Structure which contains list of proposals and associated protocols. More... | |
Functions | |
| Proposal * | AddProposal (struct Proposal **list) |
| Add a new proposal to proposal list. | |
| void | RemoveProposal (struct Proposal *prop, struct Proposal **list) |
| Removes a proposal from propsals list. | |
| void | DeleteProposal (struct Proposal *prop) |
| Free proposal with protocols and transforms. | |
| void | DeleteProposalList (struct Proposal *prop) |
| Free a list of proposals. | |
| Protocol * | AddProtocol (struct Proposal *prop, uint8_t protocol, uint8_t SPISize, uint32_t SPI) |
| Add a protocol to a given proposal. | |
| void | RemoveProtocol (struct Protocol *protocol, struct Proposal *prop) |
| Removes a protocol from proposals list. | |
| void | DeleteProtocol (struct Protocol *protocol) |
| Free a protocol with transforms. | |
| int | AddTransform (struct Protocol *protocol, uint8_t type, uint16_t id, uint16_t keyLen) |
| Add a transform to a protocol. | |
| void | RemoveTransform (struct Transform *trans, struct Protocol *protocol) |
| Remova transform. | |
| uint16_t | GetTransformID (uint8_t type, uint8_t protocol, struct Protocol *list) |
| Get a transform id for a given transform typa and protocol. | |
| uint16_t | GetTransformKeyLen (uint8_t type, uint8_t protocol, struct Protocol *list) |
| Get a transform key length for a given transform type and protocol. | |
| int | CheckNeededTransforms (struct Proposal *prop) |
| Check for required transform types. | |
| Proposal * | FindFirstSupportedProposal (struct Proposal *prop, struct Proposal *list) |
| Find a supported proposal, if there is any. | |
| int | CmpProposal (struct Proposal *p1, struct Proposal *p2) |
| Compare two proposals. | |
| Proposal * | FindProposal (struct Proposal *prop, struct Proposal *list) |
| Find proposal in proposal list. | |
|
|
Add a new proposal to proposal list.
|
|
||||||||||||||||||||
|
Add a protocol to a given proposal.
|
|
||||||||||||||||||||
|
Add a transform to a protocol.
|
|
|
Check for required transform types.
|
|
||||||||||||
|
Compare two proposals.
|
|
|
Free proposal with protocols and transforms.
|
|
|
Free a list of proposals.
|
|
|
Free a protocol with transforms.
|
|
||||||||||||
|
Find a supported proposal, if there is any.
|
|
||||||||||||
|
Find proposal in proposal list.
|
|
||||||||||||||||
|
Get a transform id for a given transform typa and protocol.
|
|
||||||||||||||||
|
Get a transform key length for a given transform type and protocol.
|
|
||||||||||||
|
Removes a proposal from propsals list.
|
|
||||||||||||
|
Removes a protocol from proposals list.
|
|
||||||||||||
|
Remova transform.
|