repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/api_inc/psp_timers.h | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020-2021 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licen... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/api_inc/psp_memory_utils.h | <filename>WD-Firmware/psp/api_inc/psp_memory_utils.h<gh_stars>10-100
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/psp_corr_err_cnt_eh2.c | <filename>WD-Firmware/psp/psp_corr_err_cnt_eh2.c
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020-2021 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/cti/loc_inc/cti_utilities.h | <reponame>edward-jones/riscv-fw-infrastructure
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Li... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/rtos/rtosal/api_inc/rtosal_macros.h | <filename>WD-Firmware/rtos/rtosal/api_inc/rtosal_macros.h
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a cop... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/demo/demo_getchar.c | <filename>WD-Firmware/demo/demo_getchar.c
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/psp_memory_utils.c | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licenses/LICE... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/cti/cti_groups_tests.c | <gh_stars>10-100
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020-2021 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.ap... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/rtos/rtosal/rtosal_interrupt.c | <gh_stars>10-100
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apac... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/api_inc/psp_nmi_eh2.h | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licenses/LICE... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/rtos/rtosal/rtosal_semaphore.c | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licenses/L... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/demo/demo_cache_control.c | <gh_stars>1-10
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020-2021 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apac... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/rtos/rtosal/api_inc/rtosal_event_api.h | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licenses/LICE... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/rtos/rtosal/api_inc/rtosal_semaphore_api.h | <gh_stars>10-100
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/api_inc/psp_performance_monitor_el2.h | <filename>WD-Firmware/psp/api_inc/psp_performance_monitor_el2.h
/*
* Copyright (c) 2010-2016 Western Digital, Inc.
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file excep... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/api_inc/psp_mutex_eh2.h | <filename>WD-Firmware/psp/api_inc/psp_mutex_eh2.h
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/common/api_inc/common_defines.h | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licenses/L... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/demo/demo_cti_rtosal.c | <reponame>edward-jones/riscv-fw-infrastructure<gh_stars>10-100
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019-2021 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/board/nexys_a7_el2/bsp/bsp_external_interrupts.h | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licenses/L... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/psp_internal_timers_eh1.c | <filename>WD-Firmware/psp/psp_internal_timers_eh1.c
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020-2021 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain ... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/api_inc/psp_csrs_eh2.h | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licenses/L... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/demo/demo_software_interrupts.c | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licenses/LICE... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/api_inc/psp_nmi_eh1.h | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licenses/LICE... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/api_inc/psp_attributes.h | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019-2021 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licen... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/demo/demo_comrv_dataoverlay.c | <reponame>edward-jones/riscv-fw-infrastructure
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Li... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/rtos/rtosal/api_inc/rtosal_types.h | <filename>WD-Firmware/rtos/rtosal/api_inc/rtosal_types.h
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a co... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/psp_timers.c | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020-2021 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/psp_internal_timers_el2.c | <gh_stars>0
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020-2021 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/cti/cti_utilities.c | <filename>WD-Firmware/cti/cti_utilities.c<gh_stars>10-100
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a cop... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/api_inc/psp_timers_el2.h | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020-2021 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licen... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/board/nexys_a7_eh2/bsp/bsp_version.h | <filename>WD-Firmware/board/nexys_a7_eh2/bsp/bsp_version.h<gh_stars>1-10
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You m... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/cti/loc_inc/cti_tests.h | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licenses/LICE... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/api_inc/psp_nmi_el2.h | <reponame>edward-jones/riscv-fw-infrastructure<gh_stars>10-100
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain ... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/api_inc/psp_performance_monitor_eh1.h | /*
* Copyright (c) 2010-2016 Western Digital, Inc.
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/rtos/rtosal/rtosal_time.c | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020-2021 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licen... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/api_inc/psp_int_vect_eh2.h | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licenses/LICE... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/psp/api_inc/psp_csrs_el2.h | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licenses/L... |
edward-jones/riscv-fw-infrastructure | WD-Firmware/rtos/rtosal/api_inc/rtosal_task_api.h | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 Western Digital Corporation or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:*www.apache.org/licenses/LICE... |
chzchzchz/chaos | attractor.h | <gh_stars>1-10
#ifndef ATTRACTOR_H
#define ATTRACTOR_H
#include <vector>
#include "xfm.h"
#include "hitmap.h"
#define MAP_DEGREE 3
#define SEARCH_DIM_X 100
#define SEARCH_DIM_Y 100
#define SEARCH_VMIN -2.0
#define SEARCH_VMAX 2.0
#define MIN_FILL 0.15
#define SEARCH_ITERS 10000
class Attractor
{
public:
Attractor(... |
chzchzchz/chaos | hitmap.h | <filename>hitmap.h
#ifndef HITMAP_H
#define HITMAP_H
#include "xfm.h"
class HitMap
{
public:
HitMap(const struct xfm& xfm_, unsigned x, unsigned y);
HitMap(unsigned x, unsigned y);
~HitMap();
void inc(double x, double y);
unsigned get_dim_x(void) const { return dimx; }
unsigned get_dim_y(void) const { return ... |
chzchzchz/chaos | xfm.h | <gh_stars>1-10
#ifndef XFM_H
#define XFM_H
// describes how to scale/translate x,y coords
struct xfm {
xfm()
: scaleX(1.0)
, scaleY(1.0)
, xlateX(0.0)
, xlateY(0.0)
{}
double scaleX;
double scaleY;
double xlateX;
double xlateY;
};
#endif
|
robcog-iai/UMenu | Source/UMenu/Public/CreateServerUI.h | <reponame>robcog-iai/UMenu<filename>Source/UMenu/Public/CreateServerUI.h
// Copyright 2018, Institute for Artificial Intelligence - University of Bremen
#pragma once
#include "SlateBasics.h"
#include "MainMenuHUD.h"
#include "MenuGI.h"
// Lays out and controls the Main Menu UI for our tutorial.
class UMENU_API SCrea... |
robcog-iai/UMenu | Source/UMenu/Public/MainMenuHUD.h | <gh_stars>1-10
// Copyright 2018, Institute for Artificial Intelligence - University of Bremen
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/HUD.h"
#include "MainMenuHUD.generated.h"
/**
*
*/
UCLASS()
class UMENU_API AMainMenuHUD : public AHUD
{
GENERATED_BODY()
// Initializes the Slate UI and a... |
robcog-iai/UMenu | Source/UMenu/Public/SettingsUI.h | <reponame>robcog-iai/UMenu
// Copyright 2018, Institute for Artificial Intelligence - University of Bremen
#pragma once
#include "SlateBasics.h"
#include "MainMenuHUD.h"
#include "MenuGI.h"
// Lays out and controls the Main Menu UI for our tutorial.
class UMENU_API SSettingsUI : public SCompoundWidget
{
public:
SL... |
robcog-iai/UMenu | Source/UMenu/Public/MenuGI.h | <filename>Source/UMenu/Public/MenuGI.h
// Copyright 2017, Institute for Artificial Intelligence - University of Bremen
#pragma once
#include "CoreMinimal.h"
#include "Engine/GameInstance.h"
#include "UMenu.h"
#include "MenuGI.generated.h"
/**
*
*/
UCLASS()
class UMENU_API UMenuGI : public UGameInstance
{
GENERAT... |
robcog-iai/UMenu | Source/UMenu/Public/MenuStyles.h | // Copyright 2018, Institute for Artificial Intelligence - University of Bremen
#pragma once
#include "CoreMinimal.h"
#include "SlateBasics.h"
/**
*
*/
class UMENU_API FMenuStyles
{
public:
// Initializes the value of MenuStyleInstance and registers it with the Slate Style Registry.
static void Initialize();
... |
robcog-iai/UMenu | Source/UMenu/Public/ServerListUI.h | <gh_stars>1-10
// Copyright 2018, Institute for Artificial Intelligence - University of Bremen
#pragma once
#include "SlateBasics.h"
#include "MainMenuHUD.h"
// Lays out and controls the Main Menu UI for our tutorial.
class UMENU_API SServerListUI : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SServerListUI)
... |
robcog-iai/UMenu | Source/UMenu/Public/GlobalMenuStyle.h | // Copyright 2018, Institute for Artificial Intelligence - University of Bremen
#pragma once
#include "SlateWidgetStyleContainerBase.h"
#include "SlateWidgetStyle.h"
#include "SlateBasics.h"
#include "GlobalMenuStyle.generated.h"
// Provides a group of global style settings for our game menus!
USTRUCT()
struct UME... |
AppleEducate/arkit-by-example | arkit-by-example/ViewController.h | //
// ViewController.h
// arkit-by-example
//
// Created by md on 6/8/17.
// Copyright © 2017 ruanestudios. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <SceneKit/SceneKit.h>
#import <ARKit/ARKit.h>
#import "Plane.h"
#import "Cube.h"
#import "Config.h"
#import "MessageV... |
MLinesCode/The-Complete-FAANG-Preparation | 3]. Competitive Programming/09]. HackerRank/1]. Practice/01]. C/1]. Introduction/_03)_Functions_in_C.c | <reponame>MLinesCode/The-Complete-FAANG-Preparation<gh_stars>1000+
#include <stdio.h>
/*
Add `int max_of_four(int a, int b, int c, int d)` here.
*/
int main()
{
int a, b, c, d,y;
scanf("%d\n",&a);
scanf("%d\n",&b);
scanf("%d\n",&c);
scanf("%d",&d);
if (a>b && a>c && a>d){
if (... |
MLinesCode/The-Complete-FAANG-Preparation | 3]. Competitive Programming/09]. HackerRank/1]. Practice/01]. C/1]. Introduction/_04)_Playing_With_Characters.c | #include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main()
{
char ch;
char stri[100],sent[10000];
scanf("%c\n",&ch);
gets(stri);
gets(sent);
printf("%c\n",ch);
puts(stri);
puts(sent);
return 0;
}
|
MLinesCode/The-Complete-FAANG-Preparation | 1]. DSA/1]. Data Structures/07]. Doubly Linked List/C/_001)_Palindrome_Checking.c | <filename>1]. DSA/1]. Data Structures/07]. Doubly Linked List/C/_001)_Palindrome_Checking.c
#include<string.h>
#include<stdlib.h>
#include<stdio.h>
struct node{
char letter;
struct node *next;
struct node *prev;
}*head,*newhead,*temp,*newtemp,*new;
int main(){
int i,length,flag=1;
char input[20];
printf("\nEnter ... |
MLinesCode/The-Complete-FAANG-Preparation | 3]. Competitive Programming/09]. HackerRank/1]. Practice/01]. C/2]. Conditionals and Loops/_03)_Sum_of_Digits_of_a_Five_Digit_Numbe.c | <gh_stars>1000+
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
int n,rem=0,sum=0;
scanf("%d", &n);
while(n!=0){
rem=n%10;
sum=sum+rem;
n=n/10;
}
printf("%d",sum);
return 0;
}
|
ElToberino/WiFiManager_for_Multidisplay | strings_en.h | <gh_stars>1-10
/**
* strings_en.h
* engligh strings for
* WifiManager_for_Multidisplay, forked by ElToberino of
* WiFiManager, a library for the ESP8266/Arduino platform
* for configuration of WiFi credentials using a Captive Portal
*
* all changes of this fork are marked with ///CHANGE MULTIDISPLAY
*
* @au... |
CircuitMess/JayD-Library | src/AudioLib/Effects/LowPass.h | #ifndef JAYD_LIBRARY_LOWPASS_H
#define JAYD_LIBRARY_LOWPASS_H
#include <Arduino.h>
#include "../Effect.h"
class LowPass : public Effect{
public:
LowPass();
void applyEffect(int16_t *inBuffer, int16_t *outBuffer, size_t numSamples) override;
void setIntensity(uint8_t intensity) override;
private:
int16_t sig... |
CircuitMess/JayD-Library | src/AudioLib/Effect.h | <reponame>CircuitMess/JayD-Library<filename>src/AudioLib/Effect.h
#ifndef JAYD_EFFECT_H
#define JAYD_EFFECT_H
class Effect
{
public:
virtual ~Effect() = default;
virtual void applyEffect(int16_t *inBuffer, int16_t *outBuffer, size_t numSamples) = 0;
virtual void setIntensity(uint8_t intensity) = 0;
};
#endif |
CircuitMess/JayD-Library | src/AudioLib/SpeedModifier.h | <filename>src/AudioLib/SpeedModifier.h<gh_stars>1-10
#ifndef JAYD_LIBRARY_SPEEDMODIFIER_H
#define JAYD_LIBRARY_SPEEDMODIFIER_H
#include "Generator.h"
#include "Source.h"
#include <Buffer/DataBuffer.h>
class SpeedModifier : public Generator {
public:
SpeedModifier(Source* source);
~SpeedModifier();
size_t gener... |
CircuitMess/JayD-Library | src/AudioLib/Converter.h | <filename>src/AudioLib/Converter.h
#ifndef JAYD_CONVERTER_H
#define JAYD_CONVERTER_H
#include "Generator.h"
#include "Source.h"
class Converter : public Generator {
public:
Converter(Source* source);
~Converter();
size_t generate(int16_t* outBuffer) override;
private:
Source* source;
};
#endif |
CircuitMess/JayD-Library | src/AudioLib/SourceAAC.h | #ifndef JAYD_SOURCEAAC_H
#define JAYD_SOURCEAAC_H
#include <Arduino.h>
#include "../AudioSetup.hpp"
#include <FS.h>
#include "Source.h"
#include "../Services/SDScheduler.h"
#include "Decoder/libhelix-aac/aacdec.h"
#include <Buffer/RingBuffer.h>
#include <aacenc_lib.h>
#include <aacdecoder_lib.h>
#include <Buffer/DataB... |
CircuitMess/JayD-Library | src/AudioLib/OutputAAC.h | #ifndef JAYD_OUTPUTFS_H
#define JAYD_OUTPUTFS_H
#include "Output.h"
#include "../AudioSetup.hpp"
#include <FS.h>
#include <aacenc_lib.h>
#include <Buffer/DataBuffer.h>
#include "../Services/SDScheduler.h"
#define OUTFS_DECODE_BUFSIZE 1024 * NUM_CHANNELS // The output buffer size should be 6144 bits per channel exclud... |
CircuitMess/JayD-Library | src/AudioLib/Systems/MixSystem.h | #ifndef JAYD_LIBRARY_MIXSYSTEM_H
#define JAYD_LIBRARY_MIXSYSTEM_H
#include <Util/Task.h>
#include "../OutputI2S.h"
#include "../OutputAAC.h"
#include "../OutputSplitter.h"
#include "../SpeedModifier.h"
#include "../EffectProcessor.h"
#include "../Mixer.h"
#include "../SourceWAV.h"
#include "../EffectType.hpp"
#includ... |
CircuitMess/JayD-Library | src/AudioLib/InfoGenerator.h | <gh_stars>1-10
#ifndef JAYD_LIBRARY_INFOGENERATOR_H
#define JAYD_LIBRARY_INFOGENERATOR_H
#include "Generator.h"
class InfoGenerator : public Generator {
public:
size_t generate(int16_t *outBuffer) override;
int available() override;
void setSource(Generator* gen);
protected:
virtual void captureInfo(int16_t *ou... |
CircuitMess/JayD-Library | src/Matrix/MatrixPartition.h | <filename>src/Matrix/MatrixPartition.h
#ifndef JAYD_LIBRARY_MATRIXPARTITION_H
#define JAYD_LIBRARY_MATRIXPARTITION_H
#include <Arduino.h>
#include <Devices/LEDmatrix/LEDmatrix.h>
class MatrixPartition : public LoopListener {
public:
MatrixPartition(LEDmatrixImpl* matrix, uint8_t width, uint8_t height);
virtual voi... |
CircuitMess/JayD-Library | src/AudioLib/Effects/BitCrusher.h | #ifndef JAYD_LIBRARY_BITCRUSHER_H
#define JAYD_LIBRARY_BITCRUSHER_H
#include <Arduino.h>
#include "../Effect.h"
class BitCrusher : public Effect {
public:
BitCrusher();
void applyEffect(int16_t *inBuffer, int16_t *outBuffer, size_t numSamples) override;
void setIntensity(uint8_t intensity) override;
private:
... |
CircuitMess/JayD-Library | src/Matrix/MatrixBig.h | <gh_stars>1-10
#ifndef JAYD_LIBRARY_MATRIXBIG_H
#define JAYD_LIBRARY_MATRIXBIG_H
#include "MatrixPartition.h"
class MatrixBig : public MatrixPartition {
public:
MatrixBig(LEDmatrixImpl* matrix);
void push() override;
};
#endif //JAYD_LIBRARY_MATRIXBIG_H
|
CircuitMess/JayD-Library | src/AudioLib/Effects/Reverb.h | <reponame>CircuitMess/JayD-Library<gh_stars>1-10
#ifndef JAYD_LIBRARY_REVERB_H
#define JAYD_LIBRARY_REVERB_H
#include <Arduino.h>
#include "../Effect.h"
class Reverb : public Effect{
public:
Reverb();
~Reverb() override;
void applyEffect(int16_t *inBuffer, int16_t *outBuffer, size_t numSamples) override;
voi... |
CircuitMess/JayD-Library | src/PerfMon.h | <reponame>CircuitMess/JayD-Library
#ifndef JAYD_LIBRARY_PERFMON_H
#define JAYD_LIBRARY_PERFMON_H
#include <Arduino.h>
#include <vector>
#include <Sync/Mutex.h>
struct PerfMonReport {
String name;
uint32_t duration;
};
class PerfMon {
public:
void init();
void start(String name);
void end();
void report();
pri... |
CircuitMess/JayD-Library | src/AudioLib/Mixer.h | <filename>src/AudioLib/Mixer.h
#ifndef JAYD_MIXER_H
#define JAYD_MIXER_H
#include <Arduino.h>
#include <vector>
#include "Generator.h"
#include "Source.h"
class Mixer : public Generator
{
public:
Mixer();
~Mixer();
size_t generate(int16_t* outBuffer) override;
int available() override;
Generator* getSource(size... |
CircuitMess/JayD-Library | src/AudioLib/Output.h | #ifndef JAYD_OUTPUT_H
#define JAYD_OUTPUT_H
#include <Arduino.h>
#include <Loop/LoopListener.h>
class OutputSplitter;
class Generator;
class Output : public LoopListener
{
friend OutputSplitter;
public:
Output(bool timed = false);
~Output();
void setSource(Generator* gen);
void loop(uint _time) override;
void s... |
CircuitMess/JayD-Library | src/Matrix/MatrixManager.h | #ifndef JAYD_LIBRARY_MATRIXMANAGER_H
#define JAYD_LIBRARY_MATRIXMANAGER_H
#include <Arduino.h>
#include "MatrixBig.h"
#include "MatrixL.h"
#include "MatrixR.h"
#include "MatrixMid.h"
class MatrixManager : public LoopListener {
public:
MatrixManager(LEDmatrixImpl* ledmatrix);
MatrixBig matrixBig;
MatrixL matrixL;
... |
CircuitMess/JayD-Library | src/Matrix/MatrixMid.h | #ifndef JAYD_LIBRARY_MATRIXMID_H
#define JAYD_LIBRARY_MATRIXMID_H
#include "MatrixPartition.h"
class MatrixMid : public MatrixPartition {
public:
MatrixMid(LEDmatrixImpl* matrix);
void push() override;
void vu(uint16_t value) override;
};
#endif //JAYD_LIBRARY_MATRIXMID_H
|
CircuitMess/JayD-Library | src/Matrix/Visualizer.h | <gh_stars>1-10
#ifndef JAYD_LIBRARY_VISUALIZER_H
#define JAYD_LIBRARY_VISUALIZER_H
#include "MatrixPartition.h"
#include "../AudioLib/InfoGenerator.h"
class Visualizer {
public:
Visualizer(MatrixPartition *matrix);
virtual InfoGenerator *getInfoGenerator() = 0;
protected:
MatrixPartition *matrix;
};
#endif //J... |
CircuitMess/JayD-Library | src/AudioLib/VuInfoGenerator.h | #ifndef JAYD_LIBRARY_VUINFOGENERATOR_H
#define JAYD_LIBRARY_VUINFOGENERATOR_H
#include "InfoGenerator.h"
class VuInfoGenerator : public InfoGenerator{
public:
uint16_t getVu();
protected:
void captureInfo(int16_t *outBuffer, size_t readSamples) override;
private:
uint16_t vu = 0;
};
#endif //JAYD_LIBRARY_VUIN... |
CircuitMess/JayD-Library | src/Matrix/RoundVuVisualiser.h | #ifndef JAYD_LIBRARY_ROUNDVUVISUALISER_H
#define JAYD_LIBRARY_ROUNDVUVISUALISER_H
#include "Visualizer.h"
#include "../AudioLib/VuInfoGenerator.h"
class RoundVuVisualiser: public Visualizer, public LoopListener{
public:
RoundVuVisualiser(MatrixPartition *matrix);
InfoGenerator *getInfoGenerator() override;
void... |
CircuitMess/JayD-Library | src/AudioLib/Source.h | <reponame>CircuitMess/JayD-Library<filename>src/AudioLib/Source.h<gh_stars>1-10
#ifndef JAYD_SOURCE_H
#define JAYD_SOURCE_H
#include "Generator.h"
#include <FS.h>
class Source : public Generator
{
public:
virtual int getBytesPerSample();
virtual int getSampleRate();
virtual int getChannels();
virtual uint16_t ge... |
CircuitMess/JayD-Library | src/AudioLib/OutputI2S.h | #ifndef JAYD_OUTPUTI2S_H
#define JAYD_OUTPUTI2S_H
#include "Output.h"
#include <driver/i2s.h>
class OutputI2S : public Output
{
public:
OutputI2S(i2s_config_t config, i2s_pin_config_t pins, i2s_port_t port = I2S_NUM_0);
~OutputI2S();
void init() override;
void deinit() override;
protected:
void output(size_t nu... |
CircuitMess/JayD-Library | src/AudioLib/OutputSplitter.h | #ifndef JAYD_LIBRARY_OUTPUTSPLITTER_H
#define JAYD_LIBRARY_OUTPUTSPLITTER_H
#include <vector>
#include "Output.h"
class OutputSplitter : public Output {
public:
OutputSplitter();
virtual ~OutputSplitter();
void addOutput(Output* output);
void setOutput(size_t i, Output* output);
Output* getOutput(size_t i);
... |
CircuitMess/JayD-Library | src/AudioLib/Effects/HighPass.h | <filename>src/AudioLib/Effects/HighPass.h
#ifndef JAYD_LIBRARY_HIGHPASS_H
#define JAYD_LIBRARY_HIGHPASS_H
#include <Arduino.h>
#include "../Effect.h"
class HighPass: public Effect {
public:
HighPass();
void applyEffect(int16_t *inBuffer, int16_t *outBuffer, size_t numSamples) override;
void setIntensity(uint8_... |
CircuitMess/JayD-Library | src/AudioLib/Decoder/ID3Parser.h | #ifndef JAYD_ID3PARSER_H
#define JAYD_ID3PARSER_H
#include <Arduino.h>
#include <FS.h>
struct ID3Metadata {
ID3Metadata(){}
size_t headerSize = 0;
char* title = nullptr;
char* album = nullptr;
char* artist = nullptr;
};
class ID3Parser {
public:
ID3Parser(fs::File& file);
ID3Metadata parse();
private:
fs:... |
CircuitMess/JayD-Library | src/AudioLib/SourceMP3.h | #ifndef JAYD_SOURCEMP3_H
#define JAYD_SOURCEMP3_H
#include <Arduino.h>
#include "../AudioSetup.hpp"
#include <FS.h>
#include "Source.h"
#include "../Services/SDScheduler.h"
#include "Decoder/libhelix-mp3/mp3dec.h"
#include "Decoder/ID3Parser.h"
#include "SourceMP3.h"
#include <Buffer/RingBuffer.h>
#include <Buffer/Dat... |
CircuitMess/JayD-Library | src/AudioLib/SourceWAV.h | <filename>src/AudioLib/SourceWAV.h
#ifndef JAYD_SOURCEWAV_H
#define JAYD_SOURCEWAV_H
#include <Arduino.h>
#include "../AudioSetup.hpp"
#include <FS.h>
#include "Source.h"
#include "../Services/SDScheduler.h"
#include <Buffer/RingBuffer.h>
class SourceWAV : public Source
{
public:
SourceWAV();
SourceWAV(fs::File fil... |
CircuitMess/JayD-Library | src/Matrix/VuVisualizer.h | <reponame>CircuitMess/JayD-Library
#ifndef JAYD_LIBRARY_VUVISUALIZER_H
#define JAYD_LIBRARY_VUVISUALIZER_H
#include "Visualizer.h"
#include "../AudioLib/VuInfoGenerator.h"
class VuVisualizer : public Visualizer, public LoopListener {
public:
VuVisualizer(MatrixPartition *matrix);
InfoGenerator *getInfoGenerator() ... |
CircuitMess/JayD-Library | src/Input/InputJayD.h | <filename>src/Input/InputJayD.h
#ifndef JAYD_INPUTJAYD_H
#define JAYD_INPUTJAYD_H
#include <Loop/LoopListener.h>
#include <Util/Vector.h>
#include <sys/param.h>
#include <vector>
#include <Util/Vector.h>
#define BYTE_IDENTIFY 0x0
#define JDNV_ADDR 0x43
#define BYTE_NUMEVENTS 0x12
#define BYTE_GETEVENTS 0x13
#define ... |
CircuitMess/JayD-Library | src/AudioLib/Generator.h | #ifndef JAYD_GENERATOR_H
#define JAYD_GENERATOR_H
#include <Arduino.h>
class Generator
{
public:
virtual ~Generator() = default;
/**
* @brief Generates samples and copies them to the supplied buffer
*
* @param outBuffer Specified buffer for the generated samples.
* @return size_t Number of samples generated... |
CircuitMess/JayD-Library | src/Matrix/MatrixL.h | <reponame>CircuitMess/JayD-Library
#ifndef JAYD_LIBRARY_MATRIXL_H
#define JAYD_LIBRARY_MATRIXL_H
#include "MatrixPartition.h"
class MatrixL : public MatrixPartition {
public:
MatrixL(LEDmatrixImpl* matrix);
void push() override;
};
#endif //JAYD_LIBRARY_MATRIXL_H
|
CircuitMess/JayD-Library | src/AudioLib/OutputWAV.h | #ifndef JAYD_OUTPUTWAV_H
#define JAYD_OUTPUTWAV_H
#include "Output.h"
#include "../AudioSetup.hpp"
#include <FS.h>
#include <aacenc_lib.h>
#include <Buffer/DataBuffer.h>
#include "../Services/SDScheduler.h"
#define OUTWAV_BUFSIZE 2 * 1024 * NUM_CHANNELS
#define OUTWAV_WRITESIZE 1 * 1024 * NUM_CHANNELS // should be sm... |
CircuitMess/JayD-Library | src/AudioLib/EffectProcessor.h | #ifndef JAYD_EFFECTPROCESSOR_H
#define JAYD_EFFECTPROCESSOR_H
#include <Arduino.h>
#include "Generator.h"
#include "Effect.h"
#include <vector>
class EffectProcessor : public Generator
{
public:
EffectProcessor(Generator* generator);
~EffectProcessor();
size_t generate(int16_t* outBuffer) override;
int available(... |
CircuitMess/JayD-Library | src/Matrix/MatrixR.h | #ifndef JAYD_LIBRARY_MATRIXR_H
#define JAYD_LIBRARY_MATRIXR_H
#include "MatrixPartition.h"
class MatrixR : public MatrixPartition {
public:
MatrixR(LEDmatrixImpl* matrix);
void push() override;
};
#endif //JAYD_LIBRARY_MATRIXR_H
|
CircuitMess/JayD-Library | src/Settings.h | <reponame>CircuitMess/JayD-Library<gh_stars>1-10
#ifndef JAYD_LIBRARY_SETTINGS_H
#define JAYD_LIBRARY_SETTINGS_H
#include <Arduino.h>
struct SettingsData {
uint8_t brightnessLevel = 150; //medium brightness
uint8_t volumeLevel = 100; //medium volume
bool inputTested = false;
bool hwTested = false;
};
class Setti... |
CircuitMess/JayD-Library | src/JayD.h | #ifndef JAYD_H
#define JAYD_H
#define PIN_BL 25
#define SD_CS 22
#define ENC_MID 0
#define ENC_L1 1
#define ENC_L2 6
#define ENC_L3 5
#define ENC_R1 4
#define ENC_R2 3
#define ENC_R3 2
#define POT_L 1
#define POT_MID 0
#define POT_R 2
#define BTN_L 0
#define BTN_R 1
#define BTN_MID 2
#define BTN_L1 3
#define BTN_L2... |
CircuitMess/JayD-Library | src/AudioLib/Systems/PlaybackSystem.h | #ifndef JAYD_LIBRARY_PLAYBACKSYSTEM_H
#define JAYD_LIBRARY_PLAYBACKSYSTEM_H
#include <Util/Task.h>
#include "../OutputI2S.h"
#include "../SpeedModifier.h"
#include "../EffectProcessor.h"
#include "../Mixer.h"
#include "../SourceWAV.h"
#include "../EffectType.hpp"
#include "../SourceAAC.h"
#include <Sync/Queue.h>
str... |
CircuitMess/JayD-Library | src/Services/SDScheduler.h | <filename>src/Services/SDScheduler.h
#ifndef JAYD_LIBRARY_SDSCHEDULER_H
#define JAYD_LIBRARY_SDSCHEDULER_H
#include <FS.h>
#include <vector>
#include <Loop/LoopListener.h>
#include <Sync/Queue.h>
struct SDResult {
uint8_t error;
size_t size;
uint8_t* buffer;
};
struct SDJob {
enum { SD_WRITE, SD_READ, SD_SEEK } ... |
fengjixuchui/C3 | Src/Common/FSecure/Slack/SlackApi.h | <gh_stars>0
#pragma once
#include "Common/json/json.hpp"
#include "Common/CppRestSdk/include/cpprest/http_client.h"
using json = nlohmann::json; //for easy parsing of json API: https://github.com/nlohmann/json
namespace FSecure
{
class Slack
{
public:
/// Constructor for the Slack Api class.
/// @param token... |
SamChenzx/SETravel | Example/SETravel/SEViewController.h | <reponame>SamChenzx/SETravel
//
// SEViewController.h
// SETravel
//
// Created by chenzhixiang on 08/07/2021.
// Copyright (c) 2021 chenzhixiang. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SEViewController : UIViewController
@end
|
SamChenzx/SETravel | SETravel/Classes/KSCoverageInfoView.h | //
// KSCoverageInfoView.h
// gifDebugHelperModule
//
// Created by <NAME> on 2021/10/15.
//
#if KSIsDebugging && KSCOVERAGE
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, KSCoverageCaseType) {
KSCoverageCaseTypeQAManual,
KSCoverageCaseTypeRDManual,
KSCoverageCaseTypeUIAut... |
SamChenzx/SETravel | Example/Pods/Headers/Public/SETravel/gifTestResourceCDNFetcher.h | <gh_stars>0
//
// gifTestResourceCDNFetcher.h
// gifTestTools
//
// Created by <NAME> on 2021/8/26.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef void(^fetchCompletionBlock)(NSString * _Nullable path, NSError * _Nullable error);
@interface gifTestResourceCDNFetcher : NSObject
+ (void)fetc... |
SamChenzx/SETravel | SETravel/Classes/KSCoverageManager.h | //
// KSCoverageManager.h
// gifDebugHelperModule
//
// Created by <NAME> on 2021/10/20.
//
#if KSIsDebugging && KSCOVERAGE
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface KSCoverageManager : NSObject
+ (instancetype)sharedManager;
- (void)uploadFilesWithInfo:(NSDictionary *)infoDic shou... |
SamChenzx/SETravel | Example/SETravel/SEAppDelegate.h | //
// SEAppDelegate.h
// SETravel
//
// Created by chenzhixiang on 08/07/2021.
// Copyright (c) 2021 chenzhixiang. All rights reserved.
//
@import UIKit;
@interface SEAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
afking/xl320 | motors.h | /* Dynamixel Communication 2.0 */
/* Implements the dynamixel communication protocol for XL-320. */
#ifndef MOTORS_H
#define MOTORS_H
#include "mbed.h"
class DM2 {
public:
// Create Dynamixel Communication protocol 2.0
DM2(PinName tx, PinName rx, int baud=1000000);
int Level;
int Test(int ID=1);
... |
alonf/UniversalACRemote | PubSub.h | <reponame>alonf/UniversalACRemote
// PubSub.h
#ifndef _PUBSUB_h
#define _PUBSUB_h
#include <functional>
#include <vector>
template<typename TOwner, typename ...Args>
class PubSub
{
friend TOwner;
using CommandNotificationPtr_t = std::function<void(Args...)>;
private:
std::vector<CommandNotificationPtr_t> _subscrib... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.