File generator_rational.h
FileList > gen-rational > src > generator_rational.h
Go to the source code of this file
A module for generating rational tangles. More...
#include "generator_defs.h"#include "storage_defs.h"#include "notation_tv.h"#include "stdbool.h"#include "stdlib.h"#include "string.h"
Classes
| Type | Name |
|---|---|
| struct | gen_rational_config_t The type definition for configuring the rational generation. |
Public Functions
| Type | Name |
|---|---|
| uint8_t | gen_rational_config (gen_rational_config_t * config_arg) The public configuration function. |
| uint8_t | gen_rational_generate () The public generation function. When called the module will work against the current config. |
Macros
| Type | Name |
|---|---|
| define | GEN_RATIONAL_COMBINATION_FAIL (0x1u << 1u)Failed to generate due to combination failure. |
| define | GEN_RATIONAL_CONFIG_BUFFER (0x1u << 2u)Failed to configure the module due to issue in buffer. |
| define | GEN_RATIONAL_CONFIG_IS_NULL (0x1u << 1u)Failed to configure the module due to null config. |
| define | GEN_RATIONAL_CONFIG_STR_BUFFER (0x1u << 3u)Failed to configure the module due to issue in string buffer. |
| define | GEN_RATIONAL_STORAGE_UKEY ("GEN\_RATIONAL")The key for. |
Detailed Description
Author:
Isabel Darcy
Author:
Zachary Bryhtan
Author:
Joe Starr
Public Functions Documentation
function gen_rational_config
The public configuration function.
uint8_t gen_rational_config (
gen_rational_config_t * config_arg
)
Parameters:
config_argThe config to set.
function gen_rational_generate
The public generation function. When called the module will work against the current config.
uint8_t gen_rational_generate ()
Returns:
uint8_t Generation status info.
Macro Definition Documentation
define GEN_RATIONAL_COMBINATION_FAIL
Failed to generate due to combination failure.
#define GEN_RATIONAL_COMBINATION_FAIL `(0x1u << 1u)`
define GEN_RATIONAL_CONFIG_BUFFER
Failed to configure the module due to issue in buffer.
#define GEN_RATIONAL_CONFIG_BUFFER `(0x1u << 2u)`
define GEN_RATIONAL_CONFIG_IS_NULL
Failed to configure the module due to null config.
#define GEN_RATIONAL_CONFIG_IS_NULL `(0x1u << 1u)`
define GEN_RATIONAL_CONFIG_STR_BUFFER
Failed to configure the module due to issue in string buffer.
#define GEN_RATIONAL_CONFIG_STR_BUFFER `(0x1u << 3u)`
define GEN_RATIONAL_STORAGE_UKEY
The key for.
#define GEN_RATIONAL_STORAGE_UKEY `("GEN_RATIONAL")`
The documentation for this class was generated from the following file source/gen-rational/src/generator_rational.h