|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
#include <cstdint>#include <cstddef>Go to the source code of this file.
Classes | |
| struct | cdc::mod_sao::sao_driver_info_t |
| struct | cdc::mod_sao::sao_descriptor_t |
Namespaces | |
| namespace | cdc |
| namespace | cdc::mod_sao |
Macros | |
| #define | SAO_EEPROM_ADDR 0x50 |
| #define | SAO_MAX_NAME_LEN 63 |
| #define | SAO_MAX_DRIVER_NAME_LEN 31 |
| #define | SAO_MAX_DRIVER_DATA_LEN 64 |
| #define | SAO_MAX_EXTRA_DRIVERS 4 |
Functions | |
| bool | sao_init (void) |
| bool | sao_scan (void) |
| bool | sao_read_descriptor (sao_descriptor_t *desc) |
| bool | sao_is_detected (void) |
| const char * | sao_get_name (void) |
| const char * | sao_get_driver_name (void) |
| void | sao_get_info_string (char *buf, size_t len) |
| #define SAO_MAX_DRIVER_DATA_LEN 64 |
Definition at line 14 of file sao.h.
Referenced by sao_parse_descriptor().
| #define SAO_MAX_DRIVER_NAME_LEN 31 |
Definition at line 13 of file sao.h.
Referenced by sao_parse_descriptor().
| #define SAO_MAX_EXTRA_DRIVERS 4 |
Definition at line 15 of file sao.h.
Referenced by sao_parse_descriptor().
| #define SAO_MAX_NAME_LEN 63 |
Definition at line 12 of file sao.h.
Referenced by sao_parse_descriptor().
| const char * sao_get_driver_name | ( | void | ) |
Definition at line 194 of file sao.cpp.
References g_sao_descriptor, and g_sao_detected.
| void sao_get_info_string | ( | char * | buf, |
| size_t | len ) |
Definition at line 199 of file sao.cpp.
References g_sao_descriptor, and g_sao_detected.
Referenced by cdc::mod_sao::getInfoView().
| const char * sao_get_name | ( | void | ) |
Definition at line 189 of file sao.cpp.
References g_sao_descriptor, and g_sao_detected.
| bool sao_init | ( | void | ) |
Definition at line 124 of file sao.cpp.
References g_sao_bus, g_sao_descriptor, g_sao_detected, g_sao_dev, g_sao_initialized, cdc::hal::getI2cBus1(), cdc::core::INITIALIZED, LOG_E, LOG_I, SAO_EEPROM_ADDR, TAG, and cdc::core::UNINITIALIZED.
Referenced by sao_scan(), and cdc::mod_sao::SaoModule::start().
| bool sao_is_detected | ( | void | ) |
Definition at line 185 of file sao.cpp.
References g_sao_detected.
| bool sao_read_descriptor | ( | sao_descriptor_t * | desc | ) |
Definition at line 175 of file sao.cpp.
References g_sao_descriptor, and g_sao_detected.
| bool sao_scan | ( | void | ) |
Definition at line 155 of file sao.cpp.
References g_sao_descriptor, g_sao_detected, g_sao_initialized, LOG_D, LOG_I, sao_init(), sao_parse_descriptor(), and TAG.
Referenced by cdc::mod_sao::SaoModule::onUnlock().