repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
eduseiti/maracluster | src/SparsePoisonedClustering.h | <reponame>eduseiti/maracluster<filename>src/SparsePoisonedClustering.h
/******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
... |
eduseiti/maracluster | src/SparseMatrix.h | <reponame>eduseiti/maracluster
/******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
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 a... |
eduseiti/maracluster | src/BinSpectra.h | <reponame>eduseiti/maracluster<filename>src/BinSpectra.h
/******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obta... |
eduseiti/maracluster | src/SpectrumClusters.h | <reponame>eduseiti/maracluster
/******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
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 a... |
eduseiti/maracluster | src/Pvalues.h | /******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
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/li... |
eduseiti/maracluster | src/SpectrumFileList.h | <gh_stars>1-10
/******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
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://ww... |
eduseiti/maracluster | src/MassChargeCandidate.h | <gh_stars>1-10
/******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
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://ww... |
eduseiti/maracluster | src/MaRaCluster.h | /******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
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/li... |
eduseiti/maracluster | src/BinaryFingerprintMethods.h | <filename>src/BinaryFingerprintMethods.h
/******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
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... |
eduseiti/maracluster | src/MatrixLoader.h | /******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
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/li... |
eduseiti/maracluster | src/SpectrumHandler.h | <reponame>eduseiti/maracluster<filename>src/SpectrumHandler.h<gh_stars>1-10
/******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lice... |
eduseiti/maracluster | src/PvalueCalculator.h | <reponame>eduseiti/maracluster<filename>src/PvalueCalculator.h
/******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ma... |
eduseiti/maracluster | src/PeakDistribution.h | /******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
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/li... |
eduseiti/maracluster | src/MSFileHandler.h | /******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
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/li... |
eduseiti/maracluster | src/ScanMergeInfoSet.h | <reponame>eduseiti/maracluster<filename>src/ScanMergeInfoSet.h
/******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ma... |
eduseiti/maracluster | src/PeakCounts.h | /******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
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/li... |
eduseiti/maracluster | src/PvalueFilterAndSort.h | /******************************************************************************
Copyright 2015 <NAME> <<EMAIL>>
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/li... |
JarmouniA/RobotGame_SDL2 | src/LoadContent.c | #include "..\include\common.h"
#include "..\include\Define.h"
// Calculating shapes parameters
void LoadContent(){
int w = 0, h = 0, numbre = 0;
// Robot's shape creating
if (Robot != NULL){
SDL_QueryTexture(Robot, NULL, NULL, &w, &h);
// Recalculate the position of the shape each time fo... |
JarmouniA/RobotGame_SDL2 | src/GoForward.c | #include "..\include\common.h"
#include "..\include\Prototypes_Fct.h"
#include "..\include\Define.h"
void GoForward(){
if (!DetectCollision(0.0, -STEP)){
Set_Background();
Roy = Roy - STEP;
LoadContent();
Flip_Angle = 180;
OnRender(Flip_Angle);
//Update the drawing ... |
JarmouniA/RobotGame_SDL2 | src/Cleanup.c | <filename>src/Cleanup.c
#include "..\include\common.h"
#include "..\include\Define.h"
void Cleanup(){
free(H_PointsToDraw);
free(V_PointsToDraw);
free(Shapes);
free(Move);
free(Position);
ClRect1C=NULL; ClRect2C=NULL; ClRect3C=NULL; ClRect4C=NULL; ClRect5C=NULL; ClRect6C=NULL;
RtRect1C=NULL... |
JarmouniA/RobotGame_SDL2 | src/Random.c | #include "..\include\common.h"
#include "..\include\Define.h"
int* Random(){
// C program for generating a random number in a given range.
// Generates and prints 'count' random numbers in range [lower, upper].
int lower = 0, upper = 2, num, count = 6, i, *RandVect;
CALLOC(RandVect, count, int);
f... |
JarmouniA/RobotGame_SDL2 | src/DrawLine.c | <gh_stars>0
#include "..\include\common.h"
#include "..\include\Define.h"
void DrawLine(){
SDL_SetRenderDrawColor(renderer, 255, 255, 255, SDL_ALPHA_OPAQUE);
int X, Y;
//Draw vertical lines of dots
for (int i = 0; i < V_Steps; i++){
X = (V_PointsToDraw[0][i] * screenWidth) + RobotRect.w/2;
... |
JarmouniA/RobotGame_SDL2 | src/loop.c | <gh_stars>0
#include "..\include\common.h"
#include "..\include\Prototypes_Fct.h"
#include "..\include\Define.h"
// check for events
void loop(){
while (SDL_PollEvent(&Event)){
// Re-create when window has been resized
if ((Event.type == SDL_WINDOWEVENT) && (Event.window.event == SDL_WINDOWEVENT_SI... |
JarmouniA/RobotGame_SDL2 | src/GoLeft.c | #include "..\include\common.h"
#include "..\include\Prototypes_Fct.h"
#include "..\include\Define.h"
void GoLeft(){
if (!DetectCollision(-STEP, 0.0)){
Set_Background();
Rox = Rox - STEP;
LoadContent();
Flip_Angle = 90;
OnRender(Flip_Angle);
//Update the drawing imag... |
JarmouniA/RobotGame_SDL2 | src/main.c | <reponame>JarmouniA/RobotGame_SDL2<gh_stars>0
#include "..\include\common.h"
#include "..\include\Prototypes_Fct.h"
#include "..\include\Define.h"
int main(int argc, char *argv[]){
// Enable standard application logging
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
// Initialize... |
JarmouniA/RobotGame_SDL2 | include/Prototypes_Fct.h | #ifndef PROTOTYPES_FCT_H_INCLUDED
#define PROTOTYPES_FCT_H_INCLUDED
void Init_Glob_Var();
void CreateWindow();
void CreateTextures();
void PlayLoop();
void Game_Over();
void Set_Background();
void loop();
void ResizeWindow();
void Delay(double);
void GoForward();
void GoBack... |
JarmouniA/RobotGame_SDL2 | src/PlayLoop.c | #include "..\include\common.h"
#include "..\include\Prototypes_Fct.h"
#include "..\include\Define.h"
void PlayLoop(){
// check for events
while (SDL_PollEvent(&Event)){
// Re-create when window has been resized
if ((Event.type == SDL_WINDOWEVENT) && (Event.window.event == SDL_WINDOWEVENT_SIZE_C... |
JarmouniA/RobotGame_SDL2 | src/Set_Background.c | #include "..\include\common.h"
#include "..\include\Prototypes_Fct.h"
#include "..\include\Define.h"
void Set_Background(){
// Background's shape creating
if (Background != NULL){
// Recalculate the position of the shape each time following the size of the window
Play_Rect.x = 0; Play_Rect.y = ... |
JarmouniA/RobotGame_SDL2 | src/DetectCollision.c | <filename>src/DetectCollision.c
#include "..\include\common.h"
#include "..\include\Define.h"
int DetectCollision(double Plus_x, double Plus_y){
SDL_Rect *RobotRectC;
MALLOC(RobotRectC, 1, SDL_Rect);
RobotRectC->x = RobotRect.x + Plus_x * screenWidth;
RobotRectC->y = RobotRect.y + Plus_y * screenHeight... |
JarmouniA/RobotGame_SDL2 | src/OnRender.c | #include "..\include\common.h"
#include "..\include\Prototypes_Fct.h"
#include "..\include\Define.h"
void OnRender(int Angle){
SDL_Point Rcenter;
Rcenter.x = (RobotRect.w)/2; Rcenter.y = (RobotRect.h)/2;
// Robot rendering
SDL_RenderCopyEx(renderer, Robot, NULL, &RobotRect, Angle, &Rcenter, SDL_FLIP_NO... |
JarmouniA/RobotGame_SDL2 | src/CheckCircle.c | <gh_stars>0
#include "..\include\common.h"
#include "..\include\Prototypes_Fct.h"
#include "..\include\Define.h"
void CheckCircle(){
if ((DetectCollision(0.0, -STEP))||DetectCollision(0.0, STEP)){
// Circles case
if (check == 21||check == 22||check == 23||check == 24||check == 25||check == 26)
... |
JarmouniA/RobotGame_SDL2 | include/Define.h | <reponame>JarmouniA/RobotGame_SDL2
#ifndef DEFINE_H_INCLUDED
#define DEFINE_H_INCLUDED
#define HEIGHT 300
#define WIDTH 640
#define X0_R 0.85
#define Y0_R 0.4
#define Y0_C 0.015
#define Rec_Y 0.019
#define Sq_Y 0.017
#define C_Y 0.77 // Circle Y parking position in zone 2
#define R... |
JarmouniA/RobotGame_SDL2 | src/CreateTextures.c | #include "..\include\common.h"
#include "..\include\Define.h"
void CreateTextures(){
// Background's texture creating
Background = IMG_LoadTexture(renderer, "./Images/Robot2.png");
if( Background == NULL ){
printf("Unable to load Robot2 image! SDL_image Error: %s\n", IMG_GetError());
}
// ... |
JarmouniA/RobotGame_SDL2 | src/MoveCircle.c | <reponame>JarmouniA/RobotGame_SDL2
#include "..\include\common.h"
#include "..\include\Prototypes_Fct.h"
#include "..\include\Define.h"
void MoveCircle(){
if (check == 21){
while(Roy < Ro_Y){
C1y = C1y + STEP;
//Moving the robot and the circle
GoBackward();
D... |
JarmouniA/RobotGame_SDL2 | src/Init_Glob_Var.c | <reponame>JarmouniA/RobotGame_SDL2
#include "..\include\common.h"
#include "..\include\Define.h"
void Init_Glob_Var(){
// Defining a rectangle pointer for each SDL_rectangle
Zone1_rectC = &Zone1_rect; Zone2_rectC = &Zone2_rect;
Screen_RectC = &Screen_Rect;
check = -1; // Collision initial value
dr... |
JarmouniA/RobotGame_SDL2 | src/CreateWindow.c | <filename>src/CreateWindow.c
#include "..\include\common.h"
#include "..\include\Define.h"
void CreateWindow(){
//Create window and renderer for given surface
window = SDL_CreateWindow("Intelligent Robot", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
screenWidth, screenHeight, ... |
JarmouniA/RobotGame_SDL2 | src/ResizeWindow.c | <filename>src/ResizeWindow.c
#include "..\include\common.h"
#include "..\include\Prototypes_Fct.h"
#include "..\include\Define.h"
void ResizeWindow(){
SDL_DestroyRenderer(renderer);
// Re-create surface
surface = SDL_GetWindowSurface(window);
renderer = SDL_CreateSoftwareRenderer(surface);
//hand... |
JarmouniA/RobotGame_SDL2 | src/Delay.c | #include "..\include\common.h"
#include "..\include\Define.h"
void Delay(double number_of_seconds) {
// Converting time into milli_seconds
int milli_seconds = 1000.0 * number_of_seconds;
// Storing start time
clock_t start_time = clock();
// looping till required time is not achieved
while (c... |
JarmouniA/RobotGame_SDL2 | include/common.h | #ifndef COMMON_H_INCLUDED
#define COMMON_H_INCLUDED
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <SDL.h>
#include <SDL_image.h>
int screenWidth, screenHeight; //window dimensions
int *Shapes, *Move, H_Steps, V_Steps;
float **H_PointsToDraw,... |
y11en/async-sockets-cpp | easysocket/include/udpserver.h | <gh_stars>1-10
#ifndef FDR_UDPSERVER_H
#define FDR_UDPSERVER_H
#include <DllHelper.h>
#include <udpsocket.h>
#include <string>
class EASYSOCKET_API UDPServer : public UDPSocket
{
public:
UDPServer();
void Bind(int port, FDR_ON_ERROR);
void Bind(std::string IPv4, std::uint16_t port, FDR_ON_ERROR);
};
#e... |
jholthusen/Homepoint | main/config/Config.h | #pragma once
#include <touch/ButtonDriver.h>
#include <touch/TouchDriver.h>
#include <tft/TFTESPIDriver.hpp>
#include <ui/PROGMEMIconDrawer.hpp>
using ScreenDriver = gfx::driver::TFTESPI; // gfx::driver::MiniGrafxDriver;
using ImageWriter = gfx::util::PROGMEMIconDrawer<ScreenDriver>; // gfx::util::SPIFFSIconDrawer fo... |
blueintegral/Level | firmware/levelfirmware/msp430-gcc/main.c | <filename>firmware/levelfirmware/msp430-gcc/main.c
//Level firmware
//Author: <NAME>
//License: GPL v3
#include <msp430.h>
#include "cc430x513x.h"
#include "IO.h"
#include "ADF4351.h"
#include "radio.h"
//#include "fix_fft.h"
#include <stdio.h>
#include <stdlib.h>
#include "math.h" //not original library version, hac... |
blueintegral/Level | firmware/levelfirmware/radio.h | /*
* radio.h
*
* Created on: Sep 7, 2014
* Author: hunter
*/
#ifndef RADIO_H_
#define RADIO_H_
#include "cc430x513x.h"
#include "RF1A.h"
#include "pmm.h"
#include <stdio.h>
#include <string.h>
/*******************
* Function Definition
*/
void Transmit(unsigned char *buffer, unsigned char length);
void... |
blueintegral/Level | firmware/levelfirmware/msp430-gcc/ADF4351.c | /*
* ADF4351.c
*
* Created on: Sep 21, 2014
* Author: hunter
*/
//#include "ADF4350_IO.h"
#include "cc430x513x.h"
#define PLL_SET_LE() P1OUT |= BIT0 //P2.0->LE for dev board, P1.0->LE for our board
#define PLL_CLR_LE() P1OUT &=~BIT0
#define PLL_SET_SCL() P1OUT |= BIT1 //P2.2->SCL for dev board, P1.1->... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_IAR/Asynchronous_comm/Synchronous_comm.c |
#include "Asynchronous_comm.h"
#define PATABLE_VAL (0x51) // 0 dBm output
extern RF_SETTINGS rfSettings;
void main( void )
{
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD;
// Increase PMMCOREV level to 2 in order to avoid low voltage error
// when the RF core i... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_IAR/Synchronous_comm/HAL/hal_pmm.h | <reponame>blueintegral/Level<filename>firmware/example code/CC430x513x RF examples/RF_Examples_IAR/Synchronous_comm/HAL/hal_pmm.h
//****************************************************************************//
// Function Library for setting the PMM
// File: hal_pmm.h
//
// Texas Instruments
//
// Version 1.2... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_IAR/Fixed_GT_FIFO/RF_Toggle_LED_Demo.c | <reponame>blueintegral/Level
/******************************************************************************
* CC430 RF Code Example - TX and RX (fixed-size packet length > FIFO size)
*
* Simple RF Link to Toggle Receiver's LED by pressing Transmitter's Button
* Warning: This RF code example is setup to operate at ... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_CCS/Variable_LT_FIFO/RF_Toggle_LED_Demo.h | <filename>firmware/example code/CC430x513x RF examples/RF_Examples_CCS/Variable_LT_FIFO/RF_Toggle_LED_Demo.h
#include "cc430x613x.h"
#include "RF1A.h"
#include "hal_pmm.h"
#include <stdio.h>
#include <string.h>
/*******************
* Function Definition
*/
void Transmit(unsigned char *buffer, unsigned char length);
... |
blueintegral/Level | firmware/levelfirmware/HAL.h | /*
* HAL.h
*
* Created on: Sep 21, 2014
* Author: hunter
*/
#ifndef HAL_H_
#define HAL_H_
#define PACKET_LENGTH (100)
#define TX_TIMER_PERIOD (40)
#define RX_TIMER_PERIOD (85)
//Function prototypes
int set_datarate(float rate);
int set_frequency(int freq);
int set_power(int power);
int set_mode(char * ... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_IAR/Variable_LT_FIFO/RF_Toggle_LED_Demo.c | <gh_stars>10-100
/******************************************************************************
* CC430 RF Code Example - TX and RX (variable packet length =< FIFO size)
*
* Simple RF Link to Toggle Receiver's LED by pressing Transmitter's Button
* Warning: This RF code example is setup to operate at either 868 or... |
blueintegral/Level | firmware/SimpliciTI-CCS-1.1.1/Projects/Examples/Applications/app_remap_led.h | <reponame>blueintegral/Level
#ifdef BSP_BOARD_EXP461x
#undef BSP_TURN_ON_LED2
#undef BSP_TURN_OFF_LED2
#undef BSP_TOGGLE_LED2
#undef BSP_LED2_IS_ON
#define BSP_TURN_ON_LED2() BSP_TURN_ON_LED3()
#define BSP_TURN_OFF_LED2() BSP_TURN_OFF_LED3()
#define BSP_TOGGLE_LED2() BSP_TOGGLE_LED3()
#... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_CCS/Synchronous_Communication/Synchronous_comm_TX.c | /********************************************************
* CC430 RF Code Example - Synchronous Transmit
*
* RF link between two devices uses synchronous mode.
* This examples shows the Transmit side of the link, by generating
* 19.2 kHZ square wave (half of the 38.4 kBaud raw RF data rate).
* The sq... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_CCS/Asynchronous_Communication/Asynchronous_comm_TX.c | <reponame>blueintegral/Level<gh_stars>10-100
/********************************************************
* CC430 RF Code Example - Asynchronous Transmit
*
* RF link between two devices uses asynchronous mode - no RF clock.
* This examples shows the Transmit side of the link, by generating
* 19.2 kHZ square wave (half o... |
blueintegral/Level | firmware/levelfirmware/ADF4351.h | /*
* ADF4351.h
*
* Created on: Sep 7, 2014
* Author: hunter
*/
#ifndef ADF4351_H_
#define ADF4351_H_
void delay (int length);
void WriteToADF4350(unsigned char count, unsigned char *buf);
void ReadFromADF4350(unsigned char count, unsigned char *buf);
void PLL_set_frq (int freq);
#endif /* ADF4351_H_ */... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_CCS/Asynchronous_Communication/Asynchronous_comm.h | #include "cc430x513x.h"
#include "RF1A.h"
#include "hal_pmm.h"
/*******************
* Function Definition
*/
void Transmit(unsigned char *buffer, unsigned char length);
void ReceiveOn(void);
void ReceiveOff(void);
void InitButtonLeds(void);
void InitRadio(void);
|
blueintegral/Level | firmware/levelfirmware/msp430-gcc/Include/fix_fft.h | <gh_stars>10-100
/* fix_fft.c - Fixed-point in-place Fast Fourier Transform */
/*
All data are fixed-point short integers, in which -32768
to +32768 represent -1.0 to +1.0 respectively. Integer
arithmetic is used for speed, instead of the more natural
floating-point.
For the forward FFT (time -> freq), fixe... |
blueintegral/Level | firmware/levelfirmware/HAL.c | <filename>firmware/levelfirmware/HAL.c
/*
* HAL.c
*
* Created on: Sep 21, 2014
* Author: hunter
*/
#include "HAL.h"
//#include <msp430.h>
#include "cc430x513x.h"
//#include "IO.H"
#include "ADF4351.H"
//#include "radio.h"
//#include <stdio.h>
//#include <stdlib.h>
#include <math.h>
#include <strings.h>
#incl... |
blueintegral/Level | firmware/levelfirmware/msp430-gcc/Include/math.h | <filename>firmware/levelfirmware/msp430-gcc/Include/math.h<gh_stars>10-100
int pow(int x, unsigned n);
int log2(unsigned x);
int floor(float x);
|
blueintegral/Level | firmware/levelfirmware/msp430-gcc/math.c | #include "math.h"
//Hacky implementations of math functions that don't exist in the mspgcc lib
int pow(int x, unsigned n) {
int p,y;
y = 1;
p = x;
while(1){
if (n & 1) y = p*y;
n = n >> 1;
if (n == 0) return y;
p = p*p;
}
}
int log2(unsigned v){
const unsigned int b[] = {0x2, 0xC, 0xF0, 0xFF00, 0xFF... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_IAR/Asynchronous_comm/Asynchronous_comm_RX.c | /********************************************************
* CC430 RF Code Example - Asynchronous Receive
*
* RF link between two devices uses asynchronous mode.
* This examples shows the Receive side of the link, by outputting the
* demodulated RF signal on GDO0 to P2.6 for analysis. In this example, the
* signal i... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_IAR/Variable_GT_FIFO/HAL/hal_UCS.c | <gh_stars>10-100
//*******************************************************************************
// Provides Functions to Initialize the UCS/FLL and clock sources
// File: hal_ucs.c
//
// Texas Instruments
//
// Version 1.2
// 11/24/09
//
// V1.0 Initial Version
// V1.1 Added timeout function
// ... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_CCS/Synchronous_Communication/Synchronous_comm_RX.c | /********************************************************
* CC430 RF Code Example - Synchronous Receive
*
* RF link between two devices uses synchronous mode.
* This examples shows the Receive side of the link, by outputting the
* demodulated RF signal on GDO0 to P2.6 for analysis. The RF clock is output
* to P2.7.... |
blueintegral/Level | firmware/levelfirmware/msp430-gcc/Include/HAL.h | /*
* HAL.h
*
* Created on: Sep 21, 2014
* Author: hunter
*/
#ifndef HAL_H_
#define HAL_H_
//Function prototypes
int set_datarate(float rate);
int set_frequency(int freq);
int set_power(int power);
int set_mode(char * mode);
//int get_status(void);
//int get_device_id(void);
//int set_message(char *buf, int ... |
blueintegral/Level | firmware/levelfirmware/msp430-gcc/HAL.c | /*
* HAL.c
*
* Created on: Sep 21, 2014
* Author: hunter
*/
#include "HAL.h"
//#include <msp430.h>
#include "cc430x513x.h"
//#include "IO.H"
#include "ADF4351.h"
//#include "radio.h"
//#include <stdio.h>
//#include <stdlib.h>
#include "math.h"
#include <string.h>
#include "RF1A.h"
#include "RfRegSettings.h"
... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_CCS/Asynchronous_Communication/HAL/RF1A.h |
/* ------------------------------------------------------------------------------------------------
* Defines
* ------------------------------------------------------------------------------------------------
*/
/********************
* Variable definition
*/
typedef struc... |
blueintegral/Level | firmware/levelfirmware/msp430-gcc/Include/IO.h | <reponame>blueintegral/Level
/*
* IO.h
*
* Created on: Sep 7, 2014
* Author: hunter
*/
#ifndef IO_H_
#define IO_H_
void MCU_IO_set()
{
// P2DIR |= BIT0 + BIT4; //P2.0 and P2.4 are outputs
// P1DIR |= BIT0; //P1.0 is output
P2DIR = 0xFF; // Set ALL the pins to output!!
P1DIR = 0xFF; //
}... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_IAR/Variable_GT_FIFO/RF_Toggle_LED_Demo.h | #include "cc430x513x.h"
#include "RF1A.h"
#include "hal_PMM.h"
#include "hal_UCS.h"
/*********************************
* Defines
*/
#define PACKET_LEN (100) // PACKET_LEN > FIFO Size
#define RSSI_IDX (PACKET_LEN+1) // Index of appended RSSI
#define CRC_LQI_IDX (PACKET_LEN+2) // Index... |
blueintegral/Level | firmware/levelfirmware/main.c | <reponame>blueintegral/Level
//Level firmware
//Author: <NAME>
//License: MIT
#include <msp430.h>
#include "cc430x513x.h"
#include "IO.H"
#include "ADF4351.H"
#include "radio.h"
//#include "fix_fft.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
//*****************************************************
//F... |
blueintegral/Level | firmware/example code/CC430x513x RF examples/RF_Examples_CCS/Asynchronous_Communication/HAL/hal_pmm.c | <reponame>blueintegral/Level
//****************************************************************************//
// Function Library for setting the PMM
// File: hal_pmm.c
//
// Texas Instruments
//
// Version 1.2
// 11/24/09
//
// V1.0 Initial Version
// V1.1 Adjustment to UG
// V1.2 Added return ... |
blueintegral/Level | firmware/levelfirmware/msp430-gcc/RF1A.c | /*
* RF1A.c
*
* Created on: Sep 7, 2014
* Author: hunter
*/
#include "RF1A.h"
#include "cc430x513x.h"
// *****************************************************************************
// @fn Strobe
// @brief Send a command strobe to the radio. Includes workaround for RF1A7
// @param uns... |
turlodales/UTM | Configuration/UTMViewState.h | //
// Copyright © 2020 osy. All rights reserved.
//
// 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/LICENSE-2.0
//
// Unless required by applicable l... |
elhigu/pocl | lib/llvmopencl/WorkitemReplication.h | <reponame>elhigu/pocl<gh_stars>0
// Header for WorkitemReplication function pass.
//
// Copyright (c) 2011 <NAME> and
// 2012 <NAME> / TUT
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
/... |
elhigu/pocl | lib/CL/clEnqueueFillImage.c | <reponame>elhigu/pocl<gh_stars>0
/* OpenCL runtime library: clEnqueueFillImage()
Copyright (c) 2013 <NAME> / Tampere Univ. of Tech.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software ... |
elhigu/pocl | lib/poclu/cl_half.c | /* cl_half - helper functions for the cl_half datatype
Copyright (c) 2013 <NAME> / Tampere University of Technology
<NAME> / Tampere University of Technology
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation fil... |
elhigu/pocl | lib/CL/clCreateUserEvent.c | <gh_stars>1-10
#include "pocl_cl.h"
CL_API_ENTRY cl_event CL_API_CALL
POname(clCreateUserEvent)(cl_context context ,
cl_int * errcode_ret ) CL_API_SUFFIX__VERSION_1_1
{
POCL_ABORT_UNIMPLEMENTED();
return CL_SUCCESS;
}
POsym(clCreateUserEvent)
|
elhigu/pocl | lib/CL/clEnqueueCopyBufferToImage.c | <filename>lib/CL/clEnqueueCopyBufferToImage.c
#include "pocl_cl.h"
#include "pocl_image_util.h"
#include "pocl_util.h"
extern CL_API_ENTRY cl_int CL_API_CALL
POname(clEnqueueCopyBufferToImage)(cl_command_queue command_queue,
cl_mem buffer,
... |
elhigu/pocl | include/poclu.h | /* OpenCL runtime library: poclu - useful utility functions for OpenCL programs
Copyright (c) 2012 <NAME> / Tampere University of Technology
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the ... |
elhigu/pocl | lib/CL/clEnqueueMapImage.c | <reponame>elhigu/pocl<gh_stars>0
/* OpenCL runtime library: clEnqueueMapImage()
Copyright (c) 2011 <NAME> / Tampere Univ. of Tech.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software w... |
elhigu/pocl | lib/CL/clGetMemObjectInfo.c | /* OpenCL runtime library: clGetDeviceInfo()
Copyright (c) 2012 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
... |
elhigu/pocl | lib/CL/devices/basic/basic.c | /* basic.c - a minimalistic pocl device driver layer implementation
Copyright (c) 2011-2013 <NAME> and
2011-2014 <NAME> / Tampere University of Technology
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the ... |
elhigu/pocl | lib/CL/clGetDeviceIDs.c | <reponame>elhigu/pocl
/* OpenCL runtime library: clGetDeviceIDs()
Copyright (c) 2011 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without ... |
elhigu/pocl | lib/CL/clEnqueueNDRangeKernel.c | <filename>lib/CL/clEnqueueNDRangeKernel.c
/* OpenCL runtime library: clEnqueueNDRangeKernel()
Copyright (c) 2011 <NAME> and
2012-2013 <NAME> / Tampere University of Technology
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated docu... |
elhigu/pocl | lib/CL/clEnqueueCopyBuffer.c | <gh_stars>1-10
/* OpenCL runtime library: clEnqueueCopyBuffer()
Copyright (c) 2011-2012 <NAME> and
<NAME> / Tampere Univ. of Tech.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), t... |
elhigu/pocl | lib/CL/clGetImageInfo.c | <reponame>elhigu/pocl<gh_stars>0
#include "pocl_cl.h"
#include "pocl_image_util.h"
#define POCL_RETURN_IMAGE_INFO(__TYPE__, __VALUE__) \
{ \
size_t const value_size = sizeof(__TYPE__); \
if (param_value) ... |
elhigu/pocl | tests/runtime/test_clCreateProgramWithBinary.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <CL/cl.h>
#define MAX_PLATFORMS 32
#define MAX_DEVICES 32
#define MAX_BINARIES 32
char kernel[] = "__kernel void k() {\n return;\n}";
int
main(void){
cl_int err;
cl_platform_id platforms[MAX_PLATFORMS];
cl_uint nplatforms;
cl_device_id ... |
elhigu/pocl | lib/CL/clSetMemObjectDestructorCallback.c | <reponame>elhigu/pocl
#include "pocl_cl.h"
CL_API_ENTRY cl_int CL_API_CALL
POname(clSetMemObjectDestructorCallback)( cl_mem memobj ,
void (CL_CALLBACK * pfn_notify)( cl_mem /* memobj */, void* /*user_data*/),
void * user_data ) CL... |
elhigu/pocl | lib/CL/clEnqueueCopyBufferRect.c | <reponame>elhigu/pocl<filename>lib/CL/clEnqueueCopyBufferRect.c
/* OpenCL runtime library: clEnqueueCopyBufferRect()
Copyright (c) 2011 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in th... |
elhigu/pocl | lib/CL/clFinish.c | <gh_stars>0
/* OpenCL runtime library: clFinish()
Copyright (c) 2011 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ri... |
elhigu/pocl | lib/CL/pocl_icd.h | #include "config.h"
/* Installable Client Driver-realated things. */
#ifndef POCL_ICD_H
#define POCL_ICD_H
// stub out ICD related stuff
#ifndef BUILD_ICD
# define POCL_DEVICE_ICD_DISPATCH
# define POCL_INIT_ICD_OBJECT(__obj__)
// rest of the file: ICD is enabled
#else
// this define is a kludge!
// The ICD lo... |
elhigu/pocl | lib/CL/clEnqueueCopyImage.c | <reponame>elhigu/pocl<gh_stars>0
#include "pocl_cl.h"
CL_API_ENTRY cl_int CL_API_CALL
POname(clEnqueueCopyImage)(cl_command_queue command_queue ,
cl_mem src_image ,
cl_mem dst_image ,
const size_t * src_origin ,
... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomExceptionCaseController.h | //
// RBBomExceptionCaseController.h
// RBBomReaderEngine
//
// Created by Hyunwoo on 11. 3. 9..
// Copyright 2011 YUTAR. All rights reserved.
//
/*
* 리디북스 뷰어엔진 V2에서의 예외처리
*
* 1) 태그와 태그 사이의 엔터(\n) 제거
* 2) IMG 태그가 fullScreen 속성을 가지고 있고 바로 다음에 PAGE태그가 올 경우 PAGE 태그 제거
*
*/
#import <Foundation/Foundation.h>
... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/RBBomStringBuilder.h | <gh_stars>0
//
// RBBomStringBuilder.h
// RBBomReaderEngine
//
// Created by <NAME> on 2/11/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RBBomStringBuilder : NSObject
- (void)appendCharacter:(unichar)ch;
- (void)appendString:(NSString *)string;
- (void)deleteL... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomImageRenderable.h | //
// RBBomImageRenderable.h
// RBBomReaderEngine
//
// Created by Earus on 1/26/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import "RBBomRenderable.h"
@interface RBBomImageRenderable : RBBomRenderable
@property (nonatomic, copy) NSString *imgSrc;
- (id)initWithImageSrc:(NSString *)aImgSrc;
- (void)r... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomRenderer.h | /*
* RBBomRenderer.h
* RBBomReaderEngine
*
* Created by Earus on 1/26/11.
* Copyright 2011 YUTAR. All rights reserved.
*
*/
#import "RBBomRendererContext.h"
#import "RBBomUtil.h"
@class RBBomRendererContext;
@class RBBomNodeInfo;
@protocol RBBomRenderer <NSObject>
- (void)prepare;
- (void)render;
@optio... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomUtil.h | <gh_stars>0
//
// RBBomUtil.h
// RBBomReaderEngine
//
// Created by <NAME> on 1/27/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#ifndef RBBomUtil_h
#define RBBomUtil_h
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomLocation.h | //
// RBBomLocation.h
// RBBomReaderEngine
//
// Created by <NAME> on 2/26/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol RBBomLocation <NSObject>
- (NSComparisonResult)compareTo:(id<RBBomLocation>)location;
- (NSInteger)rawOffset;
@end
@interface RBBomRawLoca... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomTextRenderable.h | <filename>Sources/RBBomReaderEngine/include/RBBomTextRenderable.h
//
// RBBomTextRenderable.h
// RBBomReaderEngine
//
// Created by Earus on 1/26/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import "RBBomRenderable.h"
@protocol RBBomRenderer;
@interface RBBomTextRenderable : RBBomRenderable
@property (... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomRenderable.h | <gh_stars>0
//
// RBBomRenderable.h
// RBBomReaderEngine
//
// Created by <NAME> on 1/25/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import "RBBomUtil.h"
@class RBBomRendererContext;
@protocol RBBomRenderer;
@interface RBBomRenderable : NSObject
@property (nonatomic) RBRectF rect;
@property (nonatomic... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomNodeInfo.h | <gh_stars>0
//
// RBBomNodeInfo.h
// RBBomReaderEngine
//
// Created by <NAME> on 1/25/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import "RBBomLocation.h"
@class RBBomTagNode;
@interface RBBomNodeInfo : NSObject <RBBomLocation, NSCoding, NSSecureCoding>
@property (nonatomic, readonly) NSInteger nodeI... |
ridi/bomengine-ios | Sources/RBBomReaderEngine/include/RBBomNodeManager.h | //
// RBBomNodeManager.h
// RBBomReaderEngine
//
// Created by <NAME> on 3/24/11.
// Copyright 2011 YUTAR. All rights reserved.
//
#import <Foundation/Foundation.h>
@class RBBomNode;
@class RBBomNodeRange;
@class RBBomNodeInfo;
@interface RBBomNodeManager : NSObject
@property (nonatomic, strong) RBBomNode *root... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.